API referenceRuns
Respond To Tool Execution
Settle an external tool execution and queue its result for the conversation.
POST
/api/v1/threads/{thread_id}/tool-executions/{execution_id}/respondSettle an external tool execution and queue its result for the conversation.
AuthorizationBearer <token>
A workspace API key (a13n_...)
In: header
Path Parameters
thread_id*Thread Id
execution_id*Execution Id
Header Parameters
X-Workspace-ID?|
The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/threads/string/tool-executions/string/respond" \ -H "Content-Type: application/json" \ -d '{ "status": "succeeded", "value": null }'{ "attempt_id": "string", "cancel_requested": false, "cancel_requested_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "delivery_acknowledged": false, "error": "string", "execution_id": "string", "expires_at": "2019-08-24T14:15:22Z", "external": { "arguments": { "property1": null, "property2": null }, "awaiting_response": true, "kind": "ask_user_question" }, "external_kind": "ask_user_question", "first_delivered_at": "2019-08-24T14:15:22Z", "foreground_released": false, "result_available": false, "run_id": "string", "status": "queued", "thread_id": "string", "tool_call_id": "string", "tool_name": "string", "worker_id": "string"}