Retrieve analysis task status and results
Authentication
Path parameters
Response
The identifier you provided in the custom_id field when you created the task, or null if you did not set one. This key is always present in the response.
The current status of the analysis task.
ready, failed, and canceled are terminal.
A string representing the date and time, in RFC 3339 format (“YYYY-MM-DDTHH:mm:ssZ”), when the analysis task was created.
A string representing the date and time, in RFC 3339 format (“YYYY-MM-DDTHH:mm:ssZ”), when the analysis task completed, failed, or was canceled. The platform returns this field only if status is ready, failed, or canceled.
An object that contains the generated text and additional information. The platform returns this object only when status is ready.
A condition attached to the task response. The platform sets this field in two cases:
- Task failure:
statusisfailed. Themessagefield describes the failure reason. - Truncation warning:
statusisreadyandresult.finish_reasonislength. Themessagefield describes the truncation cause (either the maximum response length was reached or the context window was reached). The partial output is inresult.data.
Check status before treating this field as a failure. This field is not set when status is ready and result.finish_reason is stop; it is set when result.finish_reason is length.
The delivery status of each configured webhook endpoint. The platform omits this field when no webhooks are configured. See the Webhooks page for supported events, registration, and reconciliation guidance.