Guardrail Policies

List workspace-wide policies

Changed on

List the workspace-wide policies that apply across workspaces in the account. Management key required.

get/guardrails/policies/account

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

Response

List of workspace-wide policies

ListAccountGuardrailPoliciesResponse required
data, AccountGuardrailPolicy[] 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_openai to the response with the status

    • info

      added the optional property data/items/oneOf[#/components/schemas/ModelAvailabilityAccountGuardrailPolicy]/config/allow_provisional_providers to the response with the status