Skip to main content
Read teams with getTeams and getTeam. For write operations, supply teamId: string where listed. memberId: string is the member’s user ID. The SDK rejects blank IDs and the segments . and .., and URL-encodes them. The API checks ownership and permissions. In a TeamMutationResponse, an invite can omit userId.

Parameters

Methods

createTeam

POST /v1/teams/create/{name} Pass name: string. An active subscription is required (HTTP 403 otherwise). Returns TeamMutationResponse.

updateTeam

PUT /v1/teams/{teamId} Pass teamId and name: string to rename a team you own. Returns TeamMutationResponse.

deleteTeam

DELETE /v1/teams/{teamId} Pass teamId for a team you own. The API can return HTTP 404 if you cannot manage it. Returns MessageResponse.

inviteTeamMember

POST /v1/teams/{teamId}/invite Pass teamId and email: string. You may include permissions and roleId. A valid role takes precedence over individual permissions. Use roleId: null or omit it to invite without a role. Returns MessageResponse.

resendTeamInvite

POST /v1/teams/{teamId}/resend-invite Pass teamId and email: string for a pending invite. The API requires five minutes between sends. Returns MessageResponse.

revokeTeamInvite

DELETE /v1/teams/{teamId}/invites Pass teamId and email: string. The API returns HTTP 404 if the invitation is missing. Returns MessageResponse.

updateTeamMemberPermissions

PUT /v1/teams/{teamId}/members/{memberId} Pass teamId, memberId and permissions: Partial<TeamPermissions>. This replaces permissions and removes the member’s role. Omitted permissions become false. Returns MessageResponse.

removeTeamMember

DELETE /v1/teams/{teamId}/members/{memberId} Pass teamId and memberId. The API can return HTTP 404 if you cannot manage that member. Returns MessageResponse.

setTeamMemberRole

PUT /v1/teams/{teamId}/members/{memberId}/role Pass teamId, memberId and roleId: string | null. Read available roles from team.roles. Pass null to remove the role. Returns MessageResponse.