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.
/api/organizationsCreates 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"
}List the caller's organisations GET
Returns every org the caller is a member of, ordered by creation date ascending — Personal Space (always the oldest) surfaces first. Each entry carries the caller's role + the org's member count.
Edit org name and/or avatar PATCH
ADMIN+. `regenerateAvatar: true` rolls the DiceBear seed to a new UUID. Both fields optional; an empty body is a no-op `204`.