Guardrail Policies

List budget policies

Changed on

List the budget policies in a workspace. Management key required.

get/guardrails/policies/budget

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP 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

ListBudgetGuardrailPoliciesResponse required
data, BudgetGuardrailPolicySummary[] 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