Skip to main content
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 its request_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

request_id
string
required
Request identifier from the X-Request-Id response header (e.g. req_01HXYZ...).

Response

id
string
The logged request’s identifier (matches the request_id path parameter).
object
string
Always "request_log".
method
string
HTTP method.
path
string
Request path.
status_code
integer
HTTP status code returned.
duration_ms
integer
Request duration in milliseconds.
endpoint_type
string
Classified endpoint type (e.g. search, read, utility).
credits
integer
Credits charged against your plan for this request.
api_key_prefix
string
Prefix of the API key used.
error_type
string
Error type slug (null on success).
error_detail
string
Error detail message (null on success).
created_at
string
ISO timestamp when the request was logged.
request_id
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