Skip to main content
Feedback
POST/v1/usage/requests/{request_id}/feedback

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

Body

application/json
rating
enum<integer> | null
Available options:
-1,
1,
null
comment
string | null
Maximum string length: 2000
kind
enum<string> | null
Available options:
bug,
feedback,
null
reason
enum<string> | null
Available options:
too_expensive,
too_slow,
great_value,
stronger_model_needed,
wrong_model,
bad_tool_call,
null

Response

Updated routed-request 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