Get users by organization
GEThttps://api.astropulse.io/internal/v1/organizations/:orgId/users
Get a paginated list of users in an organization
Request
Path Parameters
orgId stringrequired
Organization ID
Query Parameters
page integer
Page number (default: 1)
pageSize integer
Items per page (default: 10)
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Users retrieved successfully
- application/json
- Schema
- Example (auto)
Schema
data object
idstring
messagestring
statusstring
{
"data": {
"pagination": {
"currentPage": 0,
"hasNextPage": true,
"itemsPerPage": 0,
"totalItem": 0,
"totalPages": 0
},
"users": [
{
"email": "string",
"joinedAt": "string",
"name": "string",
"orgId": "string",
"planId": "string",
"role": "string",
"userId": "string"
}
]
},
"id": "string",
"message": "string",
"status": "string"
}
Invalid organization ID or pagination parameters
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
Missing or invalid authorization token
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
User does not have permission to list organization users
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
Organization not found
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
Internal server error
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.astropulse.io/internal/v1/organizations/:orgId/users");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());