Get Durable Execution Status
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/chat/executions/XkdVWiEfSwMEPrw%3D';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/chat/executions/XkdVWiEfSwMEPrw%3D \ --header 'Authorization: Bearer <token>'Poll the status of an async/durable chat execution.
*
* When to use: After starting chat inference with async: true, poll this endpoint
* to check execution status and retrieve results when complete.
*
* Identifier: Accepts either:
* - requestId (recommended): The short ID returned from the async request
* - executionArn: The full AWS Lambda durable execution ARN (must be URL-encoded)
*
* Statuses:
* - pending: Execution is starting (retry shortly)
* - running: Execution is in progress
* - waiting_callback: Execution paused, waiting for client tool results
* - complete: Execution finished successfully
* - failed: Execution failed with error
*
* Client Tool Callback:
* When status is waiting_callback, submit tool results via POST /ai/chat/callback.
*
* Polling Recommendations:
* - Start with 1 second delay, exponential backoff up to 30 seconds
* - Stop polling after 15 minutes (consider failed)
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
Either the requestId from async response, or full executionArn (URL-encoded)
Example
XkdVWiEfSwMEPrw=Responses
Section titled “Responses”Execution status retrieved
object
Raw AWS Step Functions status
Present when status is waiting_callback - use with /chat/callback
Present when status is waiting_callback - tools waiting for results
object
object
Present when status is complete
object
object
Token usage and cost for the final synthesis turn
object
Cost of the final synthesis turn in US cents
object
Present when status is failed
object
Example
{ "requestId": "XkdVWiEfSwMEPrw=", "executionArn": "arn:aws:lambda:ap-southeast-2:...", "status": "pending", "awsStatus": "SUCCEEDED", "callbackId": "Ab9hZXi/YXJuOmF3czpsYW1iZGE...", "pendingTools": [ { "name": "get_weather", "toolUseId": "toolu_bdrk_012KTC8NCG...", "input": { "location": "Sydney" } } ], "result": { "response": { "role": "assistant", "content": "The weather in Sydney is sunny." } }}Access denied
Execution not found
Failed to retrieve execution status
