Skip to content
UneeqUneeqUneeq Docs

List a team's members

GET
/external/v1/organization/{organizationID}/teams/{teamID}/users/page/{page}/limit/{limit}
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"

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.

organizationID
required
string

ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.

Example

org_HYPCX67vaupjhdTn
teamID
required
string format: uuid

ID of a live team in the organization. Must be a lowercase hyphenated UUID.

page
required
integer
>= 1 <= 100000

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

1
limit
required
integer
>= 1 <= 100

Users per page. Send a plain decimal integer: a leading 0 is read as octal (010 is 8) and a 0x prefix as hexadecimal.

Example

25
search
string

Case-insensitive substring matched against the user’s name or email.

user_roles
string

Comma-separated organization role IDs; a user matches if they hold any of them (for example USER,MANAGER).

Examples

ExamplebyRole
USER,MANAGER
user_status
string

Comma-separated organization statuses to include (active, inactive, invited).

Examples

ExampleactiveOnly
active

A page of team members.

Media typeapplication/json
object
users
required

The users on this page. Always an array, empty when there are none.

Array<object>

A member of a team, as returned by the team member list.

object
id
required

User ID.

string format: uuid
email
required

User’s email address.

string
roles
required

The user’s role IDs in this organization.

Array<string>
Allowed values: UNEEQ_ADMIN ORG_ADMIN TEAM_ADMIN AUTHOR MANAGER USER
organization_roles
required

Roles keyed by organization ID. Not filled in by the team members list, where it is always null.

object | null
status
required

The user’s status in this organization. An expired invitation still reads invited.

string
Allowed values: active inactive invited
name
required

User’s display name; an empty string when no name is set.

string
team_role
required

The user’s role within the team.

string
Allowed values: member manager
records
required

Total number of matching users across all pages.

integer

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).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

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.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

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).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

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.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

Example generated

{
"error": "example"
}
Retry-After
integer
>= 1

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).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}