Skip to main content
POST
/
api
/
teams
Create a new team
curl --request POST \
  --url https://api.example.com/api/teams \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Engineering",
  "slug": "engineering"
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "slug": "<string>",
    "created_by": "<string>",
    "is_active": true,
    "created_at": "<string>",
    "updated_at": "<string>",
    "member_count": 123
  }
}

Authorizations

Authorization
string
header
required

Auth0 JWT access token

Body

application/json
name
string
required

Display name for the team

Required string length: 1 - 200
Example:

"Engineering"

slug
string
required

URL-friendly identifier (lowercase alphanumeric + hyphens)

Required string length: 1 - 100
Pattern: ^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$
Example:

"engineering"

Response

Team created

data
object
required