Get Routing Rule

GET /v1/endpoints/{uuid}/routing-rules/{rule_id}

Read the full configuration of one routing rule, including its conditions array. Same shape as a single entry from /routing-rules.

Path parameters

uuid string (uuid) Req
Endpoint UUID.
rule_id int64 Req
Numeric rule ID.

Response (200 OK)

Same shape as a single entry from /routing-rules list.

Errors

400 Bad Request
Non-numeric rule_id.
401 Unauthorized
Missing auth.
404 Not Found
Endpoint or rule doesn't exist (or doesn't belong to the calling user).
Request
curl "https://api.ngris.com/v1/endpoints/<uuid>/routing-rules/1" \ -H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris client = Ngris(api_key="<your_api_key>") rule = client.routing_rules.get("<endpoint_uuid>", "1") print(rule["name"], rule["target_agent_id"])
Response — 200 OK
{ "id": 1, "endpoint_id": 184, "name": "api-route", "priority": 10, "target_agent_id": "api-agent-prod", "target_agent_tags": "", "enabled": true, "conditions": [ {"id": 1, "rule_id": 1, "condition_type": "path", "pattern": "/api/*", "negate": false} ], "created_at": "2026-04-29T12:00:00Z", "updated_at": "2026-04-29T12:00:00Z" }
On this page
Get Routing Rule
Iris