Guardrail Policies
List budget policies
Changed onList the budget policies in a workspace. Management key required.
get/guardrails/policies/budget
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Query parameters
offset, integer
Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned
limit, integer
Maximum number of records to return (max 100). When both offset and limit are omitted, the full list is returned
Example:50
workspace_id, string uuid
Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
Example:0df9e665-d932-5740-b2c7-b52af166bc11
Response
List of budget policies
List Budget Guardrail Policies Response required
data, Budget Guardrail Policy Summary[] required
total_count, integer required
Total number of policies
Example response
{
"data": [
{
"config": {
"include_byok_in_budgets": false,
"limit_usd": 200,
"reset_interval": "monthly"
},
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Engineering monthly budget"
}
],
"total_count": 1
}Changes
- info
the
queryrequest parameterworkspace_idbecame optional
- info
- info
endpoint added
- info