Skip to content

Requests API

GET /api/v1/admin/requests/{id} · operation findUsageRequest

Find the latest recorded inference event for an exact X-Request-Id, including its trace ID for logs and spans. Scoped roles search only events from active memberships inside the database query. Client-supplied IDs may be reused; trace ID disambiguates them.

Authentication: adminSession

Parameters

Name In Type Description
id path string, required, min length 1, max length 128

Responses

Status Description Body
200 Recorded request metadata application/json: UsageEvent and object
400 Invalid input application/json: Error
401 Missing or invalid bearer key application/json: Error
404 Request not recorded or analytics disabled —

Response 200 fields:

  • application/json: UsageEvent and object
    • All of (1): UsageEvent
    • All of (2): object
      • valuation (object) — T164.011: the valuation of this request, present only with usage_valuation on and a session with analytics:read, read in the same scope as the request. state is known, partial, unknown, unvalued (never valued) or unavailable (the valuation could not be read; the record still answers); amount_usd is set only when known or partial. charge_lines (attempt_charge_lines, T160.002) are the per-send lines, without rates.
        • state (string, required, one of "known", "partial", "unknown", "unvalued", "unavailable")
        • reason (string)
        • amount_usd (string)
        • charge_lines (array of UsageChargeLine, max items 100)

m7gtw[email protected]