List the caller's organisations
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.
/api/organizationsReturns 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.
Response Body
application/json
curl -X GET "https://loading/api/organizations"[
{
"id": "org_personal",
"name": "Personal Space",
"image": "https://api.dicebear.com/9.x/shapes/svg?seed=personal",
"type": "PERSONAL",
"role": "OWNER",
"membershipId": "mem_personal",
"memberCount": 1,
"createdAt": "2026-01-15T08:00:00.000Z"
},
{
"id": "org_acme",
"name": "Acme Inc",
"image": "https://api.dicebear.com/9.x/shapes/svg?seed=acme",
"type": "TEAM",
"role": "OWNER",
"membershipId": "mem_aaaa1111",
"memberCount": 3,
"createdAt": "2026-04-12T09:00:00.000Z"
}
]Set the project's default display-name trait key PATCH
ADMIN+. The trait key is consulted as step 3 of the 4-step display-name resolution (see `resolveDisplayName`). Pass `null` in `traitKey` to reset.
Create a TEAM organisation POST
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.