Create a workspace
Changed onCreate a new workspace for the authenticated user. Management key required.
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Request body
Default image model for this workspace
Default provider sort preference (price, throughput, latency, exacto)
Default text model for this workspace
Description of the workspace
OpenRouter server tools that requests in this workspace may not invoke. Requests naming a disabled tool are rejected with 403. An empty array or null clears the list.
Optional array of API key IDs to filter I/O logging. Read-only for management keys: any value other than the default returns 403. Change it in the OpenRouter dashboard.
Sampling rate for I/O logging (0.0001-1). Read-only for management keys: any value other than the default returns 403. Change it in the OpenRouter dashboard.
Whether data discount logging is enabled. Read-only for management keys: any value other than the default returns 403. Change it in the OpenRouter dashboard.
Whether broadcast is enabled
Whether private logging is enabled. Read-only for management keys: any value other than the default returns 403. Change it in the OpenRouter dashboard.
Name for the new workspace
URL-friendly slug (lowercase alphanumeric segments separated by single hyphens, no leading/trailing hyphens)
Example request
{
"default_image_model": "openai/dall-e-3",
"default_provider_sort": "price",
"default_text_model": "openai/gpt-4o",
"description": "Production environment workspace",
"name": "Production",
"slug": "production"
}Response
Workspace created successfully
The created workspace
Example response
{
"data": {
"created_at": "2025-08-24T10:30:00Z",
"created_by": "user_abc123",
"default_guardrail_id": "595d5849-7e86-51fd-a7c0-705c34e4afff",
"default_image_model": "openai/dall-e-3",
"default_provider_sort": "price",
"default_text_model": "openai/gpt-4o",
"description": "Production environment workspace",
"disabled_server_tools": null,
"id": "550e8400-e29b-41d4-a716-446655440000",
"include_byok_in_budgets": false,
"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": null
}
}Changes
- breaking
the response property
data/allOf[#/components/schemas/Workspace]/default_image_modelbecame optional for the status - breaking
the response property
data/allOf[#/components/schemas/Workspace]/default_provider_sortbecame optional for the status - breaking
the response property
data/allOf[#/components/schemas/Workspace]/default_text_modelbecame optional for the status
5 more changes in this revision
- breaking