Skip to main content
GET
/
api
/
governance
/
routing-rules
List routing rules
curl --request GET \
  --url http://localhost:8080/api/governance/routing-rules
{
  "rules": [
    {
      "scope": "global",
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "enabled": true,
      "cel_expression": "<string>",
      "provider": "<string>",
      "model": "<string>",
      "fallbacks": [
        "<string>"
      ],
      "scope_id": "<string>",
      "priority": 123,
      "query": {},
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "count": 123
}

Query Parameters

scope
string

Filter routing rules by scope (global, team, customer, virtual_key)

scope_id
string

Filter routing rules by scope ID

Response

Successful response

Response containing list of routing rules

rules
object[]

CEL-based routing rule for intelligent request routing

count
integer

Number of routing rules returned