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:
| Plan | Retention window |
|---|---|
free | Last 7 days |
starter | Last 30 days |
beta, pro, enterprise | Last 90 days |
billing:read scope.
Path Parameters
Request identifier from the
X-Request-Id response header (e.g. req_01HXYZ...).Response
The logged request’s identifier (matches the
request_id path parameter).Always
"request_log".HTTP method.
Request path.
HTTP status code returned.
Request duration in milliseconds.
Classified endpoint type (e.g.
search, read, utility).Units billed against your plan for this request.
Prefix of the API key used.
Error type slug (null on success).
Error detail message (null on success).
ISO timestamp when the request was logged.
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
| Status | Type | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | API key lacks billing:read |
| 404 | not_found | Request log does not exist, belongs to another org, or is outside your plan’s retention window |
Related Endpoints
- List Request Logs — paginated list with filters
- Get Usage Summary — aggregate usage rollups