AI Gateway
Get an AI Gateway routing policy
Get the routing policy document for a specific inbound pattern.
get/api/v2/policies/{inbound}
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.
Path parameters
inboundstring required
Inbound routing pattern.
Query parameters
user_idstring uuid
Filter or scope policies to a specific user. Omit for organization-wide policies.
Response
OK
Example response
{
"data": {
"attributes": {
"priority": 1,
"tiers": [
{
"targets": [
{
"id": 901,
"model": "gpt-5.2-codex",
"priority": 1,
"provider": "prod-us"
}
]
}
]
},
"id": "coding-agent",
"type": "routing-documents"
}
}Changes
Changes to this operation have not been checked yet.