AI Gateway
Get AI Gateway rate limit usage
Get live usage for the organization's rate limits. Returns requests and tokens counted in the rolling one-minute window and requests limited in the last 15 minutes for each enabled rate limit, plus untracked (traffic no enforced rate limit covers) and total (all gateway traffic).
get/api/v2/rate-limits/usage
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.
Response
OK
Example response
{
"data": [
{
"attributes": {
"input_tokens": 45000,
"limited_requests": 3,
"output_tokens": 12000,
"requests": 120
},
"id": "33333333-3333-3333-3333-333333333333",
"type": "rate-limit-usage"
}
]
}Changes
Changes to this operation have not been checked yet.