Skip to content

Replay Response

POST https://api.tokenrouter.io/v1/responses/{request_id}

Replay a previously stored response by request ID. Useful for debugging and retrieving cached responses.

Terminal window
curl https://api.tokenrouter.io/v1/responses/req_abc123 \
-H "Authorization: Bearer tr_..." \
-d '{"stream": false}'
ParameterTypeDescription
request_idstringThe request ID to replay (in path)
streambooleanWhether to stream the replay

Returns the same response format as Create Response.

  • 404: Request not found
  • 409: No response available to replay