Guardrail Policies

List model availability policies

Changed on

List the model availability policies in a workspace. Management key required.

get/guardrails/policies/model-availability

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 model availability policies

ListModelAvailabilityGuardrailPoliciesResponse required
data, ModelAvailabilityGuardrailPolicySummary[] required
total_count, integer required

Total number of policies

Example response

{
  "data": [
    {
      "config": {
        "allowed_models": [
          "openai/gpt-4o",
          "anthropic/claude-sonnet-4"
        ],
        "allowed_providers": [
          "openai",
          "anthropic"
        ],
        "enforce_zdr_anthropic": true,
        "enforce_zdr_openai": true
      },
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Engineering monthly budget"
    }
  ],
  "total_count": 1
}

Changes

    • info

      added the optional property data/items/config/allow_safety_retention_openai to the response with the status

    • info

      added the optional property data/items/config/allow_provisional_providers to the response with the status