AI Gateway
Get an AI Gateway routing rule
Get a routing rule by its organization-unique slug.
get/api/v2/routing-rules/get
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/tokenScopesai_gateway_config_read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
slugstring required
Organization-unique routing rule slug.
Response
OK
Example response
{
"data": {
"attributes": {
"created_at": "2026-08-24T12:00:00Z",
"route_id": 123,
"tiers": [
{
"ordering": "configured",
"ordering_issue": "mixed",
"targets": [
{
"id": 901,
"model": "gpt-5.2-codex",
"model_id": 101,
"provider": "prod-us",
"reasoning_level": "medium",
"slug": "coding-fallback",
"type": "model",
"weight": 70
}
]
}
],
"updated_at": "2026-08-24T12:00:00Z"
},
"id": "coding",
"type": "routing-rules"
}
}Changes
Changes to this operation have not been checked yet.