Skip to main content

Overview

Retrieve detailed information about a specific request using its unique identifier. This endpoint returns comprehensive data about both the request and response, including metadata, token usage, costs, and custom properties.

Endpoint

string
required
GET
string
required
/v1/request/

Authentication

Requires API key authentication via the Authorization header:

Path Parameters

string
required
The unique identifier of the request to retrieve

Query Parameters

boolean
default:"false"
Whether to include the full request and response bodies in the response.
  • true - Includes complete request/response payloads
  • false - Returns metadata only (faster, smaller response)

Response

Returns a single request object with detailed information.
object
The request object
string
Error message if the request failed

Examples

Basic Request

Retrieve a request without body data:

Request with Full Body

Retrieve a request including complete request and response bodies:

Using in Code

Response Example

Error Responses

Request Not Found

Unauthorized

Use Cases

  • Debug specific requests: Investigate issues with particular API calls
  • Audit trail: Review the complete history of a request and response
  • Cost analysis: Check token usage and costs for specific requests
  • Performance monitoring: Analyze latency and time-to-first-token metrics
  • Quality assurance: Review requests with feedback or evaluation scores
  • Compliance: Export specific requests for compliance or auditing purposes

Notes

  • The includeBody parameter significantly increases response size but is necessary for debugging
  • Request bodies may contain sensitive data - ensure proper access controls
  • Asset URLs (if present) are pre-signed and time-limited
  • The cost field is calculated based on token usage and current provider pricing
  • Some fields may be null depending on the request type and provider