- API
- Members endpoints
Members endpoints
The Qualithm API's Members endpoints: what each takes and returns.
Every path starts at your API URL. Every response is JSON, and an error has the error body.
List the team's active members
#GET /v1/teams/{teamId}/members
By accountName, then id, ascending. Names compare byte by byte, so uppercase sorts before lowercase.
Needs an API token with the team.read permission, which the owner, manager and viewer roles hold.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | Yes | A team ID: tem_…; also accepts the legacy tm_… |
limit | query | integer | No | Items per page, 1 to 100. Default 50. |
cursor | query | string | No | A previous page's nextCursor, to read the page after it |
Response: 200 with TeamMemberPage in data.
Errors: 400, 401, 403, 404, 429, 500, 503
curl "<your-api-url>/v1/teams/<team-id>/members" \
-H "Authorization: Bearer <your-api-token>"Accept an invite to the team
#POST /v1/teams/{teamId}/members
Only the account whose email the invite names can accept it.
Needs an API token.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | Yes | A team ID: tem_…; also accepts the legacy tm_… |
Idempotency-Key | header | string | No | A unique key for this request. A retry with the same key and body returns the first response instead of acting again; keys last 24 hours. |
Request body: CreateTeamMemberRequest
Response: 201 with TeamMembership in data.
Errors: 400, 401, 403, 404, 409, 413, 415, 429, 500, 503
curl -X POST "<your-api-url>/v1/teams/<team-id>/members" \
-H "Authorization: Bearer <your-api-token>" \
-H "Content-Type: application/json" \
-d '{"inviteId":"<invite-id>"}'Get a member of the team
#GET /v1/teams/{teamId}/members/{memberId}
Needs an API token with the team.read permission, which the owner, manager and viewer roles hold.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | Yes | A team ID: tem_…; also accepts the legacy tm_… |
memberId | path | string | Yes | A member ID: mbr_…; also accepts the legacy mem_… |
Response: 200 with TeamMember in data.
Errors: 400, 401, 403, 404, 429, 500, 503
curl "<your-api-url>/v1/teams/<team-id>/members/<member-id>" \
-H "Authorization: Bearer <your-api-token>"Change a member's role
#PATCH /v1/teams/{teamId}/members/{memberId}
Needs an API token with the member.update permission, which the owner and manager roles hold.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | Yes | A team ID: tem_…; also accepts the legacy tm_… |
memberId | path | string | Yes | A member ID: mbr_…; also accepts the legacy mem_… |
Request body: UpdateTeamMemberRequest
Response: 204 with no body.
Errors: 400, 401, 403, 404, 413, 415, 429, 500, 503
curl -X PATCH "<your-api-url>/v1/teams/<team-id>/members/<member-id>" \
-H "Authorization: Bearer <your-api-token>" \
-H "Content-Type: application/json" \
-d '{"role":"owner"}'Remove a member from the team
#DELETE /v1/teams/{teamId}/members/{memberId}
A viewer can remove only themselves; a manager only viewers and themselves.
Needs an API token with the team.read permission, which the owner, manager and viewer roles hold.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | Yes | A team ID: tem_…; also accepts the legacy tm_… |
memberId | path | string | Yes | A member ID: mbr_…; also accepts the legacy mem_… |
Response: 204 with no body.
Errors: 400, 401, 403, 404, 429, 500, 503
curl -X DELETE "<your-api-url>/v1/teams/<team-id>/members/<member-id>" \
-H "Authorization: Bearer <your-api-token>"Types
#TeamMemberPage
#| Field | Type | Required | Description |
|---|---|---|---|
items | array of TeamMember | Yes | |
nextCursor | string or null | Yes | Pass as cursor to read the next page; null on the last page |
TeamMember
#| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | A member ID: mbr_…; also accepts the legacy mem_… |
accountId | string | Yes | An account ID: acc_… |
teamId | string | Yes | A team ID: tem_…; also accepts the legacy tm_… |
role | MemberRole | Yes | |
createdAt | string (date-time) | Yes | UTC time, RFC 3339 |
updatedAt | string (date-time) | Yes | UTC time, RFC 3339 |
accountEmail | string | Yes | |
accountName | string | Yes | |
teamName | string | Yes |
MemberRole
#A member's role in a team.
one of "owner", "manager", "viewer".
CreateTeamMemberRequest
#| Field | Type | Required | Description |
|---|---|---|---|
inviteId | string | Yes | The invite to accept |
TeamMembership
#A membership row, without the account and team context
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | A member ID: mbr_…; also accepts the legacy mem_… |
accountId | string | Yes | An account ID: acc_… |
teamId | string | Yes | A team ID: tem_…; also accepts the legacy tm_… |
role | MemberRole | Yes | |
status | one of "invited", "active", "revoked", "declined" | Yes | |
createdAt | string (date-time) | Yes | UTC time, RFC 3339 |
updatedAt | string (date-time) | Yes | UTC time, RFC 3339 |
UpdateTeamMemberRequest
#| Field | Type | Required | Description |
|---|---|---|---|
role | MemberRole | Yes |