Get Tool Orchestration Status (Async Tool Polling)
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/tools/orchestrations/orch_abc123def456789012345678901234';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/tools/orchestrations/orch_abc123def456789012345678901234 \ --header 'Authorization: Bearer <token>'Retrieves the status and synthesized result of a multi-tool async execution orchestration.
*
* Note: This endpoint is for async tool execution polling (/tools/orchestrations).
* For durable batch processing orchestrations, see GET /orchestrations endpoints.
*
* Orchestration Pattern:
* When the AI requests multiple async tools simultaneously, an orchestration is created
* to track all tool executions and synthesize their results into a single coherent response.
*
* Flow:
* 1. AI requests multiple async tools (e.g., image generation + web search)
* 2. Chat API creates orchestration and returns orchestrationId
* 3. Tool Orchestrator Lambda polls all async tools
* 4. When all tools complete, Orchestrator synthesizes results using AI
* 5. Client polls this endpoint and receives final synthesized response
*
* Status Values:
* - pending: Orchestration created, tools not yet started
* - polling: Orchestrator is actively polling async tools
* - synthesizing: All tools complete, AI is synthesizing response
* - complete: Orchestration finished, synthesizedResponse available
* - failed: Orchestration failed, error available
*
* Polling Recommendations:
* - Poll every 2 seconds
* - Maximum poll time: 10 minutes
* - Orchestrator handles tool polling internally
*
* Benefits over individual polling:
* - Single poll endpoint for multiple async tools
* - AI synthesizes all results into coherent response
* - Answers the original user question, not just tool summaries
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
Example
orch_abc123def456789012345678901234Orchestration identifier for aggregated async tool executions
Responses
Section titled “Responses”Orchestration status retrieved successfully
object
Unique orchestration identifier
Current orchestration status
Total number of async tools in this orchestration
Number of tools that have completed
AI-synthesized response combining all tool results (only present when status=complete)
Status of individual tool executions
object
Tool result (if complete)
object
Error message (if failed)
Error message (only present when status=failed)
When orchestration was created
When orchestration completed (if status in complete or failed)
Seconds from creation to completion (present only once completed)
Example
{ "orchestrationId": "orch_abc123def456789012345678901234", "status": "pending", "toolCount": 2, "completedTools": 2, "result": "Based on the image I generated and the web research...", "tools": [ { "executionId": "exec_abc123def456", "toolName": "generate_image", "status": "pending" } ], "duration": 19}Access denied
Orchestration not found (may have expired after 24h)
object
Example
{ "error": "Orchestration not found", "orchestrationId": "orch_abc123def456789012345678901234"}Failed to retrieve orchestration status
