REST API
Teams
Create teams, list members, and manage invitations.
User tokens only. See Teams and projects for what each role can do.
Team object
{ "id": "8d41…", "name": "Acme", "description": "…", "avatar_url": null }GET /teams
Lists the teams you belong to.
GET /teams/{id}
Returns a team you belong to.
POST /teams
{ "team": { "name": "Acme", "description": "…" } }201. You become the team's owner.
PUT /teams/{id}
Owner or admin. Updates name, description, avatar_url. Sends
team.updated.
DELETE /teams/{id}
Owner or admin. Deletes the team. 204.
Members
GET /teams/{id}/members
{
"data": [
{ "id": "<user id>", "membership_id": "<membership id>", "role": "owner", "name": "Ada", "username": "ada@example.com", "avatar_url": null, "member_since": "2026-01-01T00:00:00Z" }
]
}DELETE /teams/{id}/members/{member_id}
Owner or admin. Removes a member; member_id is either the membership_id or
the user id from the members list. The owner can't be removed (403).
Invitations
POST /teams/{id}/invite
Owner or admin. Emails an invitation.
{ "invite": { "email": "new@example.com", "role": "member" } }role is admin or member. 200:
{ "data": { "id": "…", "email": "new@example.com", "role": "member", "team_id": "8d41…" } }POST /teams/{id}/invite/{invite_id}/accept
Accepts an invitation as the signed-in user, whose email must match the
invitation's (403 otherwise). Returns the team. Sends invite.accepted.
DELETE /teams/{id}/invite/{invite_id}
Owner or admin. Revokes a pending invitation. 204.