Replay Response
Endpoint
Section titled “Endpoint”POST https://api.tokenrouter.io/v1/responses/{request_id}Description
Section titled “Description”Replay a previously stored response by request ID. Useful for debugging and retrieving cached responses.
Request
Section titled “Request”curl https://api.tokenrouter.io/v1/responses/req_abc123 \ -H "Authorization: Bearer tr_..." \ -d '{"stream": false}'Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
request_id | string | The request ID to replay (in path) |
stream | boolean | Whether to stream the replay |
Response
Section titled “Response”Returns the same response format as Create Response.
Errors
Section titled “Errors”- 404: Request not found
- 409: No response available to replay