Get Organization Users

As an Organization Admin, list the users in your organization.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Authenticate with an Organization Admin User API key, sent in the skyfire-api-key header. Keys belonging to callers whose organization role is ADMIN are accepted; a MEMBER key, or any Agent API key, is rejected with 401.

Only users in your own organization are returned. The organization is derived from the API key, so there is no organization parameter.

Each user is returned with the agents they own and, for each agent, its accounts.

Pagination

Results are ordered by email ascending and paginated by cursor, not by offset.

When more results exist, the response includes a nextPageCursor and the response carries a Link header pointing at the next page:

Link: <https://api.skyfire.xyz/api/v1/organizations/users?pageCursor=ada%40example.com>; rel="next"

Pass that value back as pageCursor to fetch the following page. When nextPageCursor is absent, you have reached the last page.

pageSize defaults to 100 and may not exceed 1000. A value below 1 or above 1000 returns 400.

Filtering

filter is a JSON object encoded as a string in the query, so it must be URL-encoded. For example, filter={"active":true} is sent as:

GET /api/v1/organizations/users?filter=%7B%22active%22%3Atrue%7D
FieldTypeBehaviour
idstringExact match on user ID. A value that is not a valid UUID returns an empty list rather than an error.
emailstringSubstring match on email address.
identifierstringSubstring match on email, unless the value is a valid UUID, in which case it matches on user ID.
activebooleanFilter by whether the user is active.
adminbooleantrue returns Organization Admins; false returns standard members.
orgMemberRolestringExact match on organization role.

Filters combine with AND. filter must be valid JSON.

Query Params
number

Number of users to return per page. Defaults to 100, maximum 1000. e.g. 50

string

Cursor for the next page, taken from nextPageCursor in the previous response. Results are ordered by email ascending, and the cursor is the email of the last user on the previous page. e.g. "[email protected]"

string
enum

A JSON object, encoded as a string, restricting which users are returned. Conditions combine with AND. Must be valid JSON. e.g. filter={"orgMemberRole":"REPRESENTATIVE"}

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json