List a team's members
curl --request GET \ --url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/teams/{teamID}/users/page/1/limit/25" \ --header "Authorization: Bearer $UNEEQ_API_KEY"const url = `${process.env.UNEEQ_API_URL}/external/v1/organization/${process.env.UNEEQ_ORG_ID}/teams/{teamID}/users/page/1/limit/25`;const response = await fetch(url, { method: 'GET', headers: { Authorization: `Bearer ${process.env.UNEEQ_API_KEY}`, },});console.log(response.status, await response.text());Returns one page of the team’s members, sorted by name. Deleted users and users without a
role in the organization are left out; inactive and invited users (including expired
invitations) are included. Filters are applied before paging, and records is the total
number of matching members across all pages. A page past the last one returns an empty
users array with the full records count. Unknown filter values match nothing.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.
Example
org_HYPCX67vaupjhdTnID of a live team in the organization. Must be a lowercase hyphenated UUID.
1-based page number. Send a plain decimal integer: a leading 0 is read as octal (010 is 8) and a 0x prefix as hexadecimal.
Example
1Users per page. Send a plain decimal integer: a leading 0 is read as octal (010 is 8) and a 0x prefix as hexadecimal.
Example
25Query Parameters
Section titled “Query Parameters”Case-insensitive substring matched against the user’s name or email.
Comma-separated organization role IDs; a user matches if they hold any of them (for example USER,MANAGER).
Examples
USER,MANAGERComma-separated organization statuses to include (active, inactive, invited).
Examples
activeResponses
Section titled “Responses”A page of team members.
object
The users on this page. Always an array, empty when there are none.
A member of a team, as returned by the team member list.
object
User ID.
User’s email address.
The user’s role IDs in this organization.
Roles keyed by organization ID. Not filled in by the team members list, where it is always null.
The user’s status in this organization. An expired invitation still reads invited.
User’s display name; an empty string when no name is set.
The user’s role within the team.
Total number of matching users across all pages.
Example
{ "users": [ { "roles": [ "UNEEQ_ADMIN" ], "status": "active", "team_role": "member" } ]}teamID is not a lowercase UUID, or page or limit is not an integer or is out of range (message invalid request, no error_code).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}The Authorization header is missing, or the API key is not valid for this organization. A key check that fails on the server is also reported as 401.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}The team does not exist, was deleted, or is not in this organization, or the team could not be looked up (message team does not belong to the requested organization, no error_code).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}The API key has sent too many requests. Wait for the number of seconds in Retry-After, then retry.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}Headers
Section titled “Headers”Seconds to wait before retrying.
The members could not be read (message unable to get a user list for the requested team, no error_code).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}
