Skip to main content
POST /api/v1/organizations Requires a valid Bearer token. No organization-level permission is needed — this is a user-level action. The caller is automatically assigned the owner role in the new organization.

Request body

name
string
required
Display name for the organization. Example: Acme Corp.

Response

organization
object
required
The newly created organization.

Errors

StatusWhen
400Request body is invalid or missing required fields
401Missing or invalid Bearer token

Example

curl -X POST http://localhost:8080/api/v1/organizations \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"name": "Acme Corp"}'
{
  "organization": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "slug": "acme-corp",
    "name": "Acme Corp",
    "role": "owner"
  }
}

Build docs developers (and LLMs) love