Skip to main content
POST
Create Team

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Admin creation of a team.

email is marked verified on creation, as the admin UI does — an admin entering it is the verification. logo is a URL, not an upload: the web UI stores an image and passes the resulting URL, and the CLI has nowhere to upload from.

amount is an opening credit in stored units (USD * 10000), matching AdminTopupRequest. It is written as a TOPUP transaction so the balance has a ledger entry behind it rather than appearing from nowhere.

The team is created with no members; the admin UI does the same. Use teams add-member afterwards.

name
string
required
Minimum string length: 1
email
string<email>
required
slug
string | null
Required string length: 3 - 30
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
bio
string | null
url
string | null
logo
string | null
amount
integer | null
Required range: 0 <= x <= 9223372036854776000

Response

Successful Response

data
TeamDetailResponse · object | null

Response data

status
string | null

Response status