Authentication
This endpoint requires authentication and theCOMPANY:CREATE global permission or platform admin privileges:
Create Company
Request Body
Company name (min: 2, max: 255 characters)
URL-friendly company identifier (min: 2, max: 80 characters). Must contain only lowercase letters, numbers, and hyphens. Must be unique across all companies.
URL to company logo image (max: 500 characters). Must be a valid URL.
Company description (max: 5000 characters)
Additional company metadata as key-value pairs (JSON object). Can store custom fields like industry, size, etc.
Optional array of members to invite to the company upon creation
Response
Indicates if the request was successful
Created company object with default roles and creator membership
Default Roles
When a company is created, four default roles are automatically created:-
Owner (System Role)
- Color: #EF4444 (Red)
- Full access to all company resources
- Assigned to the company creator
- Cannot be deleted
-
Admin (System Role)
- Color: #F59E0B (Orange)
- Elevated privileges for company administration
- Cannot be deleted
-
Manager (Custom Role)
- Color: #3B82F6 (Blue)
- Team oversight and management
- Can be modified or deleted
-
Member (System Role, Default)
- Color: #6B7280 (Gray)
- Standard member access
- Default role for new members
- Cannot be deleted
The company creator is automatically assigned the Owner role with ACTIVE status.
Error Responses
Error message describing what went wrong