> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Subagents

> Retrieve all subagents launched within an agent session. Each subagent is an independent child agent with its own message history.

Subagents are child agents spawned within a session. This endpoint lists every subagent, letting you inspect which child agents are active or completed inside the parent session.

## Endpoint

```http theme={null}
GET /v1/agents/sessions/{session_id}/subagents
```

## Authentication

Pass one of `Authorization: Bearer <api-key>` or `Authorization: ApiKey <key>`.

## Path Parameters

<ParamField path="session_id" type="string" required>
  The agent session identifier.
</ParamField>

## Response

<ResponseField name="object" type="string">
  Always `list`.
</ResponseField>

<ResponseField name="data" type="array">
  Array of subagent objects.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://agent.example.com/v1/agents/sessions/sess_01J5X8/subagents \
    -H "Authorization: Bearer <api-key>"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "object": "list",
    "data": [
      {
        "id": "sub_01D",
        "session_id": "sess_01J5X8",
        "status": "active",
        "created_at": "2024-06-01T12:35:00Z"
      }
    ]
  }
  ```
</ResponseExample>


## Related topics

- [List Subagent Items](/api-reference/agent/subagents/items.md)
- [List Subagent Turns](/api-reference/agent/subagents/turns.md)
- [Get Subagent](/api-reference/agent/subagents/get.md)
- [Get Subagent Turn](/api-reference/agent/subagents/turn-get.md)
- [List Evaluations](/api-reference/pin/evaluations/list.md)
