Team
Teams, rosters, members and roles.
Choose a team endpoint
Every team at once, not paged: for small workspaces.
GETList teams
Search teams by name, a page at a time.
Names for team IDs you already have (QUERY for long ID lists).
Add members: find who can join, then add them.
On this page
Teams
- GETList teams
- GETList team summaries
- GETGet a team
- POSTCreate a team
- PATCHUpdate a team
- POSTArchive a team
Team members
Look up by ID
Workspace members
List teams
GET/v1/tenants/{tenantSlug}/teams
Returns every team with its active member count, optionally only active or archived teams. Not paged; for large workspaces, or to search by name, use List team summaries.
Query parameters
statusCurrent status of the team.
Responses
All matching teams.
An array, not paged. Each item:
createdAtWhen it was created (ISO 8601).
descriptionFree-text description.
idID of the team.
nameName of the team, as shown in the LMS.
statusCurrent status of the team.
tenantIdID of the workspace.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.memberCountNumber of member records.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
List team summaries
GET/v1/tenants/{tenantSlug}/teams/summaries
Searches teams by name and status, with member counts and the total number of matches. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.
Query parameters
qFree-text search; matches names and other visible text, case-insensitively.
statusCurrent status of the team summary.
cursorOpaque cursor from the previous page's
nextCursor. Leave it out to start at the first page.limitMaximum number of records to return in one page.
Responses
One page of teams.
itemsThe records in this response, in the documented order.
nextCursorPass as
cursorto fetch the next page;nullon the last page.totalTeams matching the filters, across all pages.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Get a team
GET/v1/tenants/{tenantSlug}/teams/{teamId}
Path parameters
teamIdTeam ID.
Responses
The team.
createdAtWhen it was created (ISO 8601).
descriptionFree-text description.
idID of the team.
nameName of the team, as shown in the LMS.
statusCurrent status of the team.
tenantIdID of the workspace.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NOT_FOUNDThe team does not exist or the key cannot see it.
Create a team
POST/v1/tenants/{tenantSlug}/teams
Creates an active team. Team names are unique in the workspace (409 otherwise).
Request body (application/json)
descriptionFree-text description.
nameName of the team, as shown in the LMS.
Responses
The new team.
LocationURL of the new team.
createdAtWhen it was created (ISO 8601).
descriptionFree-text description.
idID of the team.
nameName of the team, as shown in the LMS.
statusCurrent status of the team.
tenantIdID of the workspace.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NAME_CONFLICTAnother team already has this name.
Update a team
PATCH/v1/tenants/{tenantSlug}/teams/{teamId}
Renames a team or changes its description (null clears it). Send at least one field. Archived teams, and names already in use, return 409.
Path parameters
teamIdTeam ID.
Request body (application/json)
descriptionFree-text description.
nameName of the team, as shown in the LMS.
Responses
The updated team.
createdAtWhen it was created (ISO 8601).
descriptionFree-text description.
idID of the team.
nameName of the team, as shown in the LMS.
statusCurrent status of the team.
tenantIdID of the workspace.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NOT_FOUNDThe team does not exist or the key cannot see it.TEAM_NAME_CONFLICTAnother team already has this name.
Archive a team
POST/v1/tenants/{tenantSlug}/teams/{teamId}/archive
Archives a team. Archiving never cascades: if a published allocation ruleset references the team or leads are still assigned to it, the request fails with 409 (TEAM_IN_USE) and error.details.conflicts lists what to change first. Archiving an archived team succeeds without changes.
Path parameters
teamIdTeam ID.
Responses
The archived team.
createdAtWhen it was created (ISO 8601).
descriptionFree-text description.
idID of the team.
nameName of the team, as shown in the LMS.
statusCurrent status of the team.
tenantIdID of the workspace.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks theteam.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NOT_FOUNDThe team does not exist or the key cannot see it.- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
List a team's members
GET/v1/tenants/{tenantSlug}/teams/{teamId}/members
Returns all of the team's members, active and inactive, in one list. For long rosters use List a team's active members or List a team's membership history, which are paged.
Path parameters
teamIdTeam ID.
Responses
The team's members.
An array, not paged. Each item:
createdAtWhen it was created (ISO 8601).
displayNameName shown in the LMS.
statusCurrent status of the team member.
teamIdID of the team.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.userIdID of the user.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NOT_FOUNDThe team does not exist or the key cannot see it.
List a team's active members
GET/v1/tenants/{tenantSlug}/teams/{teamId}/active-members
Lists the team's active members, sorted by name: the people leads can be assigned to in this team. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.
Path parameters
teamIdTeam ID.
Query parameters
cursorOpaque cursor from the previous page's
nextCursor. Leave it out to start at the first page.limitMaximum number of records to return in one page.
Responses
One page of active members.
itemsThe records in this response, in the documented order.
nextCursorPass as
cursorto fetch the next page;nullon the last page.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NOT_FOUNDThe team does not exist or the key cannot see it.
List a team's membership history
GET/v1/tenants/{tenantSlug}/teams/{teamId}/member-history
Lists everyone who has been a member of the team, active and inactive. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.
Path parameters
teamIdTeam ID.
Query parameters
cursorOpaque cursor from the previous page's
nextCursor. Leave it out to start at the first page.limitMaximum number of records to return in one page.
Responses
One page of members.
itemsThe records in this response, in the documented order.
nextCursorPass as
cursorto fetch the next page;nullon the last page.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NOT_FOUNDThe team does not exist or the key cannot see it.
List members who can join a team
GET/v1/tenants/{tenantSlug}/teams/{teamId}/available-members
Lists active workspace members who are not active members of this team, sorted by name. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.
Path parameters
teamIdTeam ID.
Query parameters
cursorOpaque cursor from the previous page's
nextCursor. Leave it out to start at the first page.limitMaximum number of records to return in one page.
Responses
One page of members.
itemsThe records in this response, in the documented order.
nextCursorPass as
cursorto fetch the next page;nullon the last page.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NOT_FOUNDThe team does not exist or the key cannot see it.
Add a team member
POST/v1/tenants/{tenantSlug}/teams/{teamId}/members
Adds an active workspace member to the team, or reactivates a former member. The team must be active; users outside the workspace and members who are already active return 409.
Path parameters
teamIdTeam ID.
Request body (application/json)
userIdID of the user.
Responses
The membership.
createdAtWhen it was created (ISO 8601).
displayNameName shown in the LMS.
statusCurrent status of the team member.
teamIdID of the team.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.userIdID of the user.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NOT_FOUNDThe team does not exist or the key cannot see it.- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
Remove a team member
POST/v1/tenants/{tenantSlug}/teams/{teamId}/members/{userId}/deactivate
Deactivates a membership. The record is kept, so assignment history still resolves. If a published allocation ruleset pins the member as a fixed agent, or the member still owns leads in this team, the request fails with 409 (TEAM_MEMBER_IN_USE) and error.details.conflicts lists what to change first. Deactivating an inactive member succeeds without changes.
Path parameters
teamIdTeam ID.
userIdUser ID of the member.
Responses
The inactive membership.
createdAtWhen it was created (ISO 8601).
displayNameName shown in the LMS.
statusCurrent status of the team member.
teamIdID of the team.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.userIdID of the user.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks theteam.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.TEAM_NOT_FOUNDThe team does not exist or the key cannot see it.MEMBER_NOT_FOUNDThe member does not exist or the key cannot see it.- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
Look up teams by ID
GET/v1/tenants/{tenantSlug}/teams/lookup
Returns the teams with the given IDs, for example to label team IDs from lead records. Pass each ID as a repeated teamId query parameter (?teamId=…&teamId=…), 1 to 100 of them. Unknown IDs are omitted. For long lists use the QUERY form.
Responses
The matching teams.
An array, not paged. Each item:
createdAtWhen it was created (ISO 8601).
descriptionFree-text description.
idID of the team.
nameName of the team, as shown in the LMS.
statusCurrent status of the team.
tenantIdID of the workspace.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.memberCountNumber of member records.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Look up teams by ID (query)
QUERY/v1/tenants/{tenantSlug}/teams/lookup
Same as Look up teams by ID, with up to 100 IDs in the body. Uses the HTTP QUERY method with a JSON body (safe and idempotent, like GET). Send Content-Type: application/json.
Request body (application/json)
teamIdsIDs of the team records.
Responses
The matching teams.
An array, not paged. Each item:
createdAtWhen it was created (ISO 8601).
descriptionFree-text description.
idID of the team.
nameName of the team, as shown in the LMS.
statusCurrent status of the team.
tenantIdID of the workspace.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.memberCountNumber of member records.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.QUERY_CONTENT_TYPE_UNSUPPORTEDTheQUERYrequest has noContent-Type: application/jsonbody.QUERY_VALIDATION_FAILEDTheQUERYbody is JSON but does not match the request fields.
Look up member names by user ID
GET/v1/tenants/{tenantSlug}/teams/members
Returns display names for the given user IDs, including former members, so historical owners still get a label. Pass each ID as a repeated userId query parameter (?userId=…&userId=…), 1 to 100 of them. Unknown IDs are omitted. For long lists use the QUERY form.
Responses
Names of the matching members.
An array, not paged. Each item:
displayNameName shown in the LMS.
userIdID of the user.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Look up member names by user ID (query)
QUERY/v1/tenants/{tenantSlug}/teams/members
Same as Look up member names by user ID, with up to 100 IDs in the body. Uses the HTTP QUERY method with a JSON body (safe and idempotent, like GET). Send Content-Type: application/json.
Request body (application/json)
userIdsIDs of the user records.
Responses
Names of the matching members.
An array, not paged. Each item:
displayNameName shown in the LMS.
userIdID of the user.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.QUERY_CONTENT_TYPE_UNSUPPORTEDTheQUERYrequest has noContent-Type: application/jsonbody.QUERY_VALIDATION_FAILEDTheQUERYbody is JSON but does not match the request fields.
Check team memberships
GET/v1/tenants/{tenantSlug}/teams/membership-lookup
Returns the active memberships among the given team and user pairs, for example to check that a lead's owner still belongs to its team. Pass repeated teamId and userId query parameters; they are paired by position, so send the same number of each (1 to 100). Pairs without an active membership are omitted. For long lists use the QUERY form.
Responses
Active memberships among the pairs.
An array, not paged. Each item:
createdAtWhen it was created (ISO 8601).
displayNameName shown in the LMS.
statusCurrent status of the team member.
teamIdID of the team.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.userIdID of the user.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Check team memberships (query)
QUERY/v1/tenants/{tenantSlug}/teams/membership-lookup
Same as Check team memberships, with up to 100 team and user pairs in the body. Uses the HTTP QUERY method with a JSON body (safe and idempotent, like GET). Send Content-Type: application/json.
Request body (application/json)
membershipsTeam and member pairs to look up.
Responses
Active memberships among the pairs.
An array, not paged. Each item:
createdAtWhen it was created (ISO 8601).
displayNameName shown in the LMS.
statusCurrent status of the team member.
teamIdID of the team.
updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.userIdID of the user.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.QUERY_CONTENT_TYPE_UNSUPPORTEDTheQUERYrequest has noContent-Type: application/jsonbody.QUERY_VALIDATION_FAILEDTheQUERYbody is JSON but does not match the request fields.
List the member directory
GET/v1/tenants/{tenantSlug}/teams/directory
Lists active workspace members by display name, for choosing people without handling contact details. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.
Query parameters
cursorOpaque cursor from the previous page's
nextCursor. Leave it out to start at the first page.limitMaximum number of records to return in one page.
Responses
One page of members.
itemsThe records in this response, in the documented order.
nextCursorPass as
cursorto fetch the next page;nullon the last page.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
List workspace members
GET/v1/tenants/{tenantSlug}/members
Lists workspace members and pending invitations with their roles and teams, optionally filtered by status or searched by name or email. The acting member needs permission to manage members. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.
Query parameters
searchFree-text search; matches names and other visible text, case-insensitively.
statusCurrent status of the member.
cursorOpaque cursor from the previous page's
nextCursor. Leave it out to start at the first page.limitMaximum number of records to return in one page.
Responses
One page of members.
nextCursorPass as
cursorto fetch the next page;nullon the last page.itemsThe records in this response, in the documented order.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Get a workspace member
GET/v1/tenants/{tenantSlug}/members/{recordId}
Returns one member or pending invitation by its recordId (from List workspace members). recordKind tells which it is. The acting member needs permission to manage members.
Path parameters
recordIdMember record ID.
Responses
The member.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
List assignable roles
GET/v1/tenants/{tenantSlug}/members/roles
Lists the roles that can be given to workspace members. The acting member needs permission to manage members.
Responses
Assignable roles.
An array, not paged. Each item:
idID of the role.
keyStable machine key. Unlike the label, it never changes.
nameName of the role, as shown in the LMS.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks theteam.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.