Skip to main content
GET
/
api
/
circuit-breaker
/
policies
Error
A valid request URL is required to generate request examples
{
  "policies": [
    {
      "name": "<string>",
      "primary_provider": "<string>",
      "primary_model": "<string>",
      "fallback_provider": "<string>",
      "fallback_model": "<string>",
      "condition": {
        "signals": [
          {
            "source": "response_header",
            "header_name": "<string>",
            "header_value": "<string>",
            "header_contains": "<string>"
          }
        ],
        "operator": "OR"
      },
      "enabled": true,
      "primary_key_ids": [
        "<string>"
      ],
      "default_cooldown": "<string>",
      "cooldown_header": "<string>"
    }
  ],
  "count": 123
}

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <API key>. Virtual keys, dashboard/user/session tokens, and x-api-key headers are not supported on management APIs.

Response

Successful response

policies
object[]
count
integer

Total number of policies returned.