---
title: "List sub-agents spawned by the agent"
method: GET
path: "/agents/{agentId}/sub-agents"
tags: ["Sub-Agents"]
---

# List sub-agents spawned by the agent

`GET /agents/{agentId}/sub-agents`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/agents/{agentId}/sub-agents`
- Auth: HTTP bearer

## Path parameters

- `agentId` string, required

## Response `200`

- SubAgent[]
  - `id` string, uuid, required
  - `agentId` string, uuid, required
  - `engineId` string, required
  - `name` string, required
  - `model` string, nullable
  - `status` 'queued' | 'running' | 'succeeded' | 'failed' | 'timed_out' | 'cancelled', required
  - `startedAt` string, date-time, nullable
  - `durationMs` integer, nullable: Hermes only.
  - `toolCalls` integer, nullable: Hermes only.
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `404`: Not found, or the caller is not authorized to access this resource.

---

[API](https://skmtc.dev/atako/apis/atako-api.md) · [All operations](https://skmtc.dev/atako/apis/atako-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atako/apis/atako-api/revisions/aa555c56fbd7?raw)
