Skip to content

Members

Every endpoint on this page requires members:read.

Returns a paged member directory.

ParameterTypeNotes
team_codestringOptional team-code filter
team_idstring, repeatableOptional team-id filter
rolestring, repeatableowner, admin, member, guest
statusstring, repeatableinvited, active, suspended, removed
querystringOptional free-text filter
cursorstringOptional cursor
page_sizeintegerOptional page size
sortstringdisplay_name, role, or status
directionstringasc, ascending, desc, or descending
Terminal window
curl "$API_BASE_URL/v1/members?team_code=PLAT&role=admin&status=active&sort=display_name&direction=asc" \
-H "Authorization: Bearer $ACCESS_TOKEN"

Response 200 OK:

{
"results": [
{
"id": "member_01EXAMPLE",
"userAccountId": "usr_01EXAMPLE",
"displayName": "Alex Morgan",
"avatarUrl": "https://cdn.example.com/avatars/alex.png",
"emailAddress": "alex@example.com",
"principalKind": 0,
"role": 2,
"status": 2,
"teamIds": [
"team_platform"
],
"teamNames": [
"Platform"
]
}
],
"pagination": {
"pageSize": 100,
"cursor": "",
"nextCursor": "",
"hasMore": false,
"returnedCount": 1,
"totalCount": 1
}
}

Returns one member by member ID.

Terminal window
curl "$API_BASE_URL/v1/members/member_01EXAMPLE" \
-H "Authorization: Bearer $ACCESS_TOKEN"

Response 200 OK:

{
"id": "member_01EXAMPLE",
"userAccountId": "usr_01EXAMPLE",
"displayName": "Alex Morgan",
"avatarUrl": "https://cdn.example.com/avatars/alex.png",
"emailAddress": "alex@example.com",
"principalKind": 0,
"role": 2,
"status": 2,
"teamIds": [
"team_platform",
"team_product"
],
"teamNames": [
"Platform",
"Product"
]
}
  • Invalid team filters return 400 invalid_request
  • Unknown members return 404 not_found