cURL
curl --request GET \ --url https://api.trymaitai.ai/api/v1/agents/tasks/{task_id}/tree \ --header 'X-Maitai-Api-Key: <api-key>'
{ "data": { "task_id": "task_001", "status": "COMPLETED", "children": [ { "task_id": "task_002", "status": "COMPLETED", "children": [] } ] } }
Retrieve the hierarchical tree of sub-tasks spawned from a root task.
Your Maitai API key from the Portal.
Get agent task tree.
Was this page helpful?