Get Request Log
Logs
Get Request Log
Retrieve a single API request log by request ID
GET
Get Request Log
Beta. The request logs schema is new and may evolve. Field names should be stable, but we reserve the right to add fields or adjust response shape before general availability.
Overview
Returns a single request log entry by itsrequest_id. Useful for looking up the full context of a request when a caller reports an error and includes the request_id header.
Per-plan access control limits how far back you can retrieve logs:
Requires the
billing:read scope.
Path Parameters
string
required
Request identifier from the
X-Request-Id response header (e.g. req_01HXYZ...).Response
string
The logged request’s identifier (matches the
request_id path parameter).string
Always
"request_log".string
HTTP method.
string
Request path.
integer
HTTP status code returned.
integer
Request duration in milliseconds.
string
Classified endpoint type (e.g.
search, read, utility).integer
Credits charged against your plan for this request.
string
Prefix of the API key used.
string
Error type slug (null on success).
string
Error detail message (null on success).
string
ISO timestamp when the request was logged.
string
The request ID of this lookup call (per the standard envelope convention). To identify the logged request being retrieved, use the top-level
id field.Code Examples
Errors
Related Endpoints
- List Request Logs — paginated list with filters
- Get Usage Summary — aggregate usage rollups