Create an organization
Creates an organization with the owner, admin and member Roles, and makes the caller its owner. To act in it, get a token for it with the token endpoint’s organization_id parameter.
POST
/organizationsAuthorization
AuthorizationBearer token (JWT) · headerrequiredAn access token issued by this service (RFC 9068), in the Authorization header as Bearer <token>.
Request body
requiredapplication/jsonnamestringrequiredmin length 1 · max length 100
slugstringrequiredmatches ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$
Responses
201
The new organization.
idstring<uuid>requirednamestringrequiredslugstringrequiredURL-safe handle, unique across organizations.
created_atstring<date-time>requiredupdated_atstring<date-time>requireddefault
The request failed.
errorstringrequiredStable machine-readable code.
Allowed:
invalid_requestunauthorizedforbiddennot_foundconflictgoneunavailableinternalmessagestringrequiredHuman-readable explanation.