Skip to main content
POST
Create a new organization
Creates a new organization with the authenticated user as the owner.

Authentication

This endpoint requires authentication via Bearer token:
  • Authorization: Bearer <token>

Permissions

All authenticated users can create organizations. The user who creates the organization automatically becomes the owner.

Request Body

Organization Roles

After creation, the organization will have the following role structure:
  • Owner: Full control (cannot be changed or removed)
  • Admin: Can manage members and settings
  • Member: Basic access to organization resources

Slug Requirements

The organization slug must be:
  • Unique across all organizations
  • URL-friendly (lowercase letters, numbers, hyphens)
  • Between 3-50 characters
  • Cannot be changed after creation
The slug is used in URLs: /org/{slug}/...

Example Request

Example Response

Common Errors

409 Conflict

The slug is already taken by another organization. Choose a different slug.

400 Bad Request

Invalid input data (e.g., slug too short, invalid characters).

Best Practices

  • Use descriptive organization names
  • Choose slugs that are easy to remember and type
  • Slugs are permanent, so choose carefully
  • Keep logo images under 2MB for best performance

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Organization name

Required string length: 1 - 100
Example:

"Acme Corporation"

slug
string
required

Organization URL slug

Required string length: 1 - 100
Pattern: ^[a-z0-9-]+$
Example:

"acme-corp"

Organization logo URL

Example:

"https://example.com/logo.png"

Response

Organization created successfully. The user becomes the organization owner.