Dozor
Organizations

Create a TEAM organisation

Creates a TEAM-type org with the caller as its OWNER. Personal Space is auto-provisioned by Auth.js's `createUser` event — this route only mints TEAM orgs.

POST/api/organizations

Creates a TEAM-type org with the caller as its OWNER. Personal Space is auto-provisioned by Auth.js's createUser event — this route only mints TEAM orgs.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/api/organizations" \  -H "Content-Type: application/json" \  -d '{    "name": "Acme Inc"  }'
{
  "id": "org_acme",
  "name": "Acme Inc",
  "image": "https://api.dicebear.com/9.x/shapes/svg?seed=acme",
  "type": "TEAM"
}
Empty
Empty