Teams
Team management and member roles
Teams (organizations) are the top-level container for properties, members, and billing.
Create Team
POST /teamsCreates a new team. The creating user becomes the owner.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Team display name |
slug | string | Yes | URL-safe identifier (must be unique) |
Get Current Team
GET /teamReturns the current team's details and settings.
Update Team
PATCH /teamUpdate team name, settings, or branding.
Check Slug Availability
GET /teams/check-slug?slug=my-teamCheck if a team slug is available before creating.
Update Member Role
PUT /team/roleChange a team member's role.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | The user to update |
role | string | Yes | New role: owner, admin, or member |