Create a new organization
Organizations
Create Organization
Creates a new organization with the authenticated user as the owner. All authenticated users can create organizations.
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
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Organization name (3-100 characters) |
slug | string | Yes | URL-friendly identifier (3-50 characters) |
logo | string | No | URL to organization logo image |
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
/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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Organization created successfully. The user becomes the organization owner.