Retrieve all members of an organization with pagination support.
POSThttps://api.aitronos.com/v1/organizations/{organization_id}/users
organization_id string required
Organization ID with org_ prefix.
skip integer optional
Number of records to skip (default: 0).
take integer optional
Number of records to return.
search_term string optional
Search filter for member names or emails.
role_id string optional
Filter by role ID.
status_id string optional
Filter by status ID.
sort_field string optional
Field to sort results by.
sort_direction string optional
Sort direction. One of: asc, desc.
include_deleted boolean optional
Include deleted members (default: false).
Paginated list of organization members with role and status information.
Requires authentication. User must be a member of the organization.
Bash
- Bash
- Python
- Python
- JavaScript
curl -X POST \
"https://api.aitronos.com/v1/organizations/org_xyz789/users" \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"skip": 0, "take": 100}'Response:
{
"members": [
{
"id": "orguser_abc123",
"user_id": "usr_abc123",
"organization_id": "org_xyz789",
"role_id": "role_admin",
"status_id": "status_active",
"joined_at": "2025-01-15T08:00:00Z",
"email": "admin@example.com",
"full_name": "John Doe",
"role_name": "Admin",
"status_name": "Active"
},
{
"id": "orguser_def456",
"user_id": "usr_def456",
"organization_id": "org_xyz789",
"role_id": "role_member",
"status_id": "status_active",
"joined_at": "2025-02-20T09:00:00Z",
"email": "member@example.com",
"full_name": "Jane Smith",
"role_name": "Member",
"status_name": "Active"
}
],
"total": 2,
"skip": 0,
"limit": 100
}