Skip to main content

Create team

method
POST
/api/teams/create
Create a new team. The caller becomes the team owner. Auth: User JWT

Request body

name
string
required
Team name
slug
string
required
URL-safe slug (lowercase, alphanumeric, hyphens)

Response

teamId
string
required
The new team ID

Send invitation

method
POST
/api/invitations/send
Send a team invitation by email or username. Must be a team admin or owner. Auth: User JWT

Request body

teamId
string
required
Team to invite to
email
string
Invite by email
username
string
Invite by @username
role
string
Role to assign (default: member)

Response

success
boolean
required
Always true on success
invitationId
string
required
The invitation ID

Accept invitation

method
POST
/api/invitations/accept
Accept a team invitation by ID or token. Auth: User JWT

Request body

invitationId
string
Invitation ID
token
string
Invitation token

Response

success
boolean
required
Always true on success
teamId
string
required
The team joined

Reject invitation

method
POST
/api/invitations/reject
Reject a team invitation. Auth: User JWT

Request body

invitationId
string
Invitation ID
token
string
Invitation token

Response

success
boolean
required
Always true on success

Resend invitation

method
POST
/api/invitations/resend
Resend a pending invitation email. Extends expiration to 7 days. Must be a team admin or owner. Auth: User JWT

Request body

invitationId
string
required
Invitation ID to resend

Response

success
boolean
required
Always true on success