Create a workspace
Create a new workspace for the authenticated user. Management key required.
Authorizations
API key as bearer token in Authorization header
Body
Name for the new workspace
1 - 100"Production"
URL-friendly slug (lowercase alphanumeric segments separated by single hyphens, no leading/trailing hyphens)
1 - 50^[a-z0-9]+(?:-[a-z0-9]+)*$"production"
Default image model for this workspace
"openai/dall-e-3"
Default provider sort preference (price, throughput, latency, exacto)
"price"
Default text model for this workspace
"openai/gpt-4o"
Description of the workspace
500"Production environment workspace"
Optional array of API key IDs to filter I/O logging
null
Sampling rate for I/O logging (0.0001-1)
1
Whether data discount logging is enabled
true
Whether broadcast is enabled
false
Whether private logging is enabled
false
Response
Workspace created successfully
The created workspace
{
"created_at": "2025-08-24T10:30:00Z",
"created_by": "user_abc123",
"default_image_model": "openai/dall-e-3",
"default_provider_sort": "price",
"default_text_model": "openai/gpt-4o",
"description": "Production environment workspace",
"id": "550e8400-e29b-41d4-a716-446655440000",
"io_logging_api_key_ids": null,
"io_logging_sampling_rate": 1,
"is_data_discount_logging_enabled": true,
"is_observability_broadcast_enabled": false,
"is_observability_io_logging_enabled": false,
"name": "Production",
"slug": "production",
"updated_at": "2025-08-24T15:45:00Z"
}