v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
teams

Create Team

Create a new team with the authenticated user as owner.

The creator automatically becomes the team owner.

post/teams

Request body

namestring required

Name for the team

usage_reset_timezonestring nullable

IANA timezone for the daily credit reset hour. Defaults to UTC when omitted.

Response

Successful Response

idstring required
namestring required
owner_idstring required
payment_planstring required
router_enabledboolean
zero_data_retentionboolean
created_atstring required
updated_atstring required
member_countinteger nullable
current_user_role'owner' | 'billing' | 'admin' | 'editor' | 'viewer'

Team member roles with hierarchical permissions.

Wire DTO mirror of the ORM TeamRoleType enum. Used only for API request/response serialization; authorization decisions route through the ORM matrix (database_tables.permissions), never this enum.

capabilitiesobject nullable