Guardrail Policies
List workspace-wide policies
Changed onList the workspace-wide policies that apply across workspaces in the account. Management key required.
get/guardrails/policies/account
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
Response
List of workspace-wide policies
List Account Guardrail Policies Response required
data, Account Guardrail Policy[] required
total_count, integer required
Total number of policies
Example response
{
"data": [
{
"config": {
"include_byok_in_budgets": false,
"limit_usd": 200,
"reset_interval": "monthly"
},
"created_at": "2025-08-24T10:30:00Z",
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Engineering monthly budget",
"opted_out_workspace_ids": [
"0df9e665-d932-5740-b2c7-b52af166bc11"
],
"workspace_ids": [
"0df9e665-d932-5740-b2c7-b52af166bc11"
]
}
],
"total_count": 1
}Changes
- info
added the optional property
data/items/oneOf[#/components/schemas/ModelAvailabilityAccountGuardrailPolicy]/config/allow_safety_retention_openaito the response with the status
- info
- info
added the optional property
data/items/oneOf[#/components/schemas/ModelAvailabilityAccountGuardrailPolicy]/config/allow_provisional_providersto the response with the status
- info