Retrieve a response
Returns a previously created response by id. With stream=true the response is delivered as server-sent events instead of a single JSON body, replaying the run from the beginning and continuing live if it is still going. Streaming a retrieve requires a response created with background: true; on any other response it returns a 400.
Authentication
Your ASI:One API key, sent as Authorization: Bearer <api_key>.
Path parameters
The id of the response, as returned when it was created. A malformed id returns a 400; an id that does not exist returns a 404.
Query parameters
If true, replay the response as server-sent events. Requires a response created with background: true.
When streaming, replay only the events after this sequence_number.
Response headers
Correlation id for this request, present on every response: the caller-supplied X-Request-Id when one was sent, otherwise minted by the API. Backends log it and traces key on it, so cite it when reporting an issue.
Response
Lifecycle status. queued and in_progress mean the run is still going; completed, failed, cancelled and incomplete are terminal.