API reference
Run a tool in an external task
Queue a tool call for an external task you own. Use a tool name and input schema from listTaskTools. This runs the selected tool without an Adam agent or model loop; tools may provision compute, use connected accounts or credentials, and incur usage charges. Poll getToolCall for the outcome. An unknown outcome must not be retried with a new key because the operation may have taken effect.
POST
/v1/tasks/{taskId}/tool-callsAuthorization
Send a personal API key or an OAuth access token as Authorization: Bearer <token>.
OAuth scopes: tasks:write and tools:execute
Parameters
Idempotency-Keystring, headerrequiredRequired unique key for this tool call. Reuse it with the same task, tool and input to retrieve the original call rather than execute it again.
taskIdstring (uuid), pathrequired
Request body
application/json, required
toolstringrequiredinputobjectrequired
Responses
202Success
callobjectrequiredidstring (uuid)requiredtaskIdstring (uuid)requiredtoolstringrequiredstatus"queued" | "running" | "succeeded" | "failed" | "unknown"requiredinputobjectrequiredoutputstring | number | boolean | null | any[] | object | nullrequirederrorobject | nullrequiredcodestringrequiredmessagestringrequiredcreatedAtstringrequiredstartedAtstring | nullrequiredfinishedAtstring | nullrequired
400Invalid request
errorobjectrequiredtypestringrequiredmessagestringrequiredrequestIdstring
401Missing or invalid Bearer credential
errorobjectrequiredtypestringrequiredmessagestringrequiredrequestIdstring
402Payment or subscription required
errorobjectrequiredtypestringrequiredmessagestringrequiredrequestIdstring
403Credential is missing a required scope
errorobjectrequiredtypestringrequiredmessagestringrequiredrequestIdstring
404Resource not found
errorobjectrequiredtypestringrequiredmessagestringrequiredrequestIdstring
409Request conflict
errorobjectrequiredtypestringrequiredmessagestringrequiredrequestIdstring
429Rate limit exceeded
errorobjectrequiredtypestringrequiredmessagestringrequiredrequestIdstring
500Internal API error
errorobjectrequiredtypestringrequiredmessagestringrequiredrequestIdstring