API reference
Inspect an external task subagent
Return a subagent's status, result, and produced file references without starting a parent model turn. Supply exactly one of subagentId or toolCallId; the latter can recover a launch whose tool-call outcome is unknown. Requires tasks:read and tools:execute. Returns null when no matching subagent exists. Internal messages, model routes, and raw errors are omitted.
GET
/v1/tasks/{taskId}/subagents/lookupAuthorization
Send a personal API key or an OAuth access token as Authorization: Bearer <token>.
OAuth scopes: tasks:read and tools:execute
Parameters
taskIdstring (uuid), pathrequiredtoolCallIdstring (uuid), queryLaunch tool-call identifier. Provide this or subagentId, but not both.
subagentIdstring, queryChild task UUID. Provide this or toolCallId, but not both.
Responses
200Success
subagentobject | nullrequiredsubagentIdstring (uuid)requiredtaskIdstring (uuid)requiredtoolCallIdstring | nullrequiredworkerNamestringrequiredstatus"idle" | "draft" | "streaming" | "awaiting_tool_result" | "completed" | "failed"requiredstopCause"user" | "parent" | "parent_stopped" | nullrequiredactivebooleanrequiredresultstring | nullrequirederrorstring | nullrequiredfilesobject[]requiredidstringrequirednamestring | nullrequiredmediaTypestringrequiredcreatedAtstringrequiredupdatedAtstringrequired
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