Console API
GET/api/request-logs

Request logs

Per-request observability records from the gateway — endpoint, model, HTTP status, provider result, token counts and billing status for every call made with your keys. Retention is 7 days; this is a debugging view, not the billing source of truth (use billing events for that).

curl -sS "https://admin.atptoken.ai/api/request-logs?org_id=<org>&limit=50&min_status=400" \
  -H "Authorization: Bearer $TOKEN"
FieldTypeDescription
org_idstring · requiredOrganization id.
workspace_id / project_idstringNarrow the scope.
from / tostringTime range.
request_idstringLook up one request — the id every API response returns.
unified_model_name / endpoint_urlstringFilter by model or API path.
min_status / max_statusintegere.g. `min_status=400` for failures only.
provider_id / provider_status / has_provider_errorUpstream-side filters.
limit / cursor / sort_byPaging and ordering.
Correlating errors

Every gateway response carries an x-request-id header (also id in the body). When reporting an issue, quote it — support can match it to the exact log row here.