Request Body
Organization details to create.
Unique name/slug for the organization. Must be lowercase, alphanumeric with hyphens. Used in URLs and API calls. Cannot be changed after creation.Example:
acme-corp, my-organizationHuman-readable display name for the organization. Can contain spaces and special characters.Example:
Acme Corporation, My OrganizationURL to the organization’s avatar image. Should be a publicly accessible image URL.Example:
https://example.com/avatars/acme.pngCustom metadata for the organization. Can contain any valid JSON structure. Must comply with the organization metadata schema if validation is enabled.Example:
{"industry": "technology", "size": "enterprise", "region": "us-west"}Response
The newly created organization object.
Unique identifier for the organization (UUID format).
Unique name/slug for the organization.
Human-readable display name for the organization.
URL to the organization’s avatar image.
State of the organization. Newly created organizations are
enabled by default.Custom metadata associated with the organization.
Timestamp when the organization was created (RFC3339 format).
Timestamp when the organization was last updated (RFC3339 format).
Response Example
Error Responses
Error code indicating the type of error.
Human-readable error message.
Common Errors
- 400 Bad Request: Invalid request body or missing required fields
- Invalid organization name format (must be lowercase alphanumeric with hyphens)
- Metadata doesn’t match the required schema
- Missing required fields (name or title)
- 401 Unauthenticated: Invalid or missing authentication token
- 409 Conflict: Organization with the same name already exists
- 500 Internal Server Error: Server encountered an unexpected error
Notes
- The authenticated user automatically becomes the organization owner
- Organization names are globally unique and cannot be changed
- The organization is created in
enabledstate by default - An audit log entry is created for the organization creation event
- Default roles and permissions are automatically set up for the owner