Skip to content

Create team

POST
/teams

Create a new team with the authenticated user as admin

object
name
required

Name for the new team (1-255 characters)

string
>= 1 characters <= 255 characters

Team created successfully

object
teamId
required

Unique identifier for the team (nanoid format)

string
name
required

Human-readable name for the team

string
createdAt
required

When the team was created (ISO 8601)

string format: date-time
updatedAt
required

When the team was last modified (ISO 8601)

string format: date-time

Unauthorized - user must be logged in to create a team

Forbidden - only system administrators can create teams