Retrieve a response
Read back a stored response.
GET
/responses/{response_id}Read back a stored response.
Only a response created with store: true can be read. A response that does not exist, or that belongs to another account, answers 404.
The response keeps its full input, including the text of any file you sent as input_file. To see that input, use GET /responses/{response_id}/input_items.
Authorization
BearerAuth AuthorizationBearer <token>
Your Avey API key, sent as Authorization: Bearer <key>. This is the header the OpenAI SDKs already send, so pass the key as the client's ordinary api_key and no further configuration is needed.
In: header
Path Parameters
response_id*string
The id of a stored response, as returned in its id.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl https://api.avey.ai/llm/responses/resp_5c7a2e1f8b3d4a609e1c7f2b4d8a6e30 \ -H "Authorization: Bearer $AVEY_API_KEY"{ "id": "resp_5c7a2e1f8b3d4a609e1c7f2b4d8a6e30", "object": "response", "created_at": 1769904000, "status": "completed", "incomplete_details": null, "model": "olive", "output": [ { "type": "message", "role": "assistant", "content": [ { "type": "output_text", "text": "You were treated for a chest infection and are going home on a five-day course of antibiotics.", "annotations": [] } ] } ], "usage": { "input_tokens": 38, "output_tokens": 274, "total_tokens": 312 }}