Workspaces
Get a workspace budget
Changed onRetrieve the budget for a given interval. Management key required.
get/workspaces/{workspace_ref}/budgets/{interval}
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Path parameters
workspace_ref, string required
The workspace ID (UUID) or slug
Example:production
interval, 'daily' | 'weekly' | 'monthly' | 'lifetime' required
Budget reset interval. Use "lifetime" for a one-time budget that never resets.
Example:monthly
Response
Budget retrieved successfully
Get Workspace Budget Response required
data, intersection required
The budget for the requested interval
include_byok_in_budgets, boolean
Whether BYOK (bring-your-own-key) spend is included when enforcing the workspace's budgets. This is a workspace-wide setting that applies to all budget intervals (daily, weekly, monthly, and lifetime).
Example response
{
"data": {
"created_at": "2025-08-24T10:30:00Z",
"id": "770e8400-e29b-41d4-a716-446655440000",
"limit_usd": 100,
"reset_interval": "monthly",
"updated_at": "2025-08-24T15:45:00Z",
"workspace_id": "550e8400-e29b-41d4-a716-446655440000"
},
"include_byok_in_budgets": true
}Changes
- info
added the non-success response with the status
- info