Skip to main content
Get request details
GET/v1/usage/requests/{request_id}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

request_id
string
required

Response

Cost and routing record.

request_id
string
required
created_at
string<date-time>
required
prompt_preview
string
required
response_preview
string
required
provider_ranks
object[]
required
total_cost_nanos
integer<int64>
required
total_input_tokens
integer<int64>
required
total_output_tokens
integer<int64>
required
selected_model_id
string
byok
boolean
routing_mode
enum<string>
Available options:
pro,
max,
ultra_saver
session_id
string
agent_id
string
parent_agent_id
string
session_source
string
credential_name
string
feedback
object