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
GET
/v1/request/
Authentication
Requires API key authentication via theAuthorization header:
Path Parameters
The unique identifier of the request to retrieve
Query Parameters
Whether to include the full request and response bodies in the response.
true- Includes complete request/response payloadsfalse- Returns metadata only (faster, smaller response)
Response
Returns a single request object with detailed information.The request object
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
includeBodyparameter 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
costfield is calculated based on token usage and current provider pricing - Some fields may be
nulldepending on the request type and provider