> ## 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.

# Get Subagent

> Fetch a single subagent by ID within an agent session to inspect its status and configuration details.

Use this endpoint to retrieve detailed information about a specific subagent. The response includes the subagent identifier, parent session, and current status.

## Endpoint

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

## 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>

<ParamField path="subagent_id" type="string" required>
  The subagent identifier.
</ParamField>

## Response

<ResponseField name="id" type="string">
  Unique subagent identifier.
</ResponseField>

<ResponseField name="session_id" type="string">
  The parent session identifier.
</ResponseField>

<ResponseField name="status" type="string">
  Subagent status, for example `active` or `completed`.
</ResponseField>

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

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


## Related topics

- [Get Subagent Turn](/api-reference/agent/subagents/turn-get.md)
- [List Subagents](/api-reference/agent/subagents/list.md)
- [Get Memory Item](/api-reference/agent/memory/get.md)
- [List Subagent Items](/api-reference/agent/subagents/items.md)
- [List Subagent Turns](/api-reference/agent/subagents/turns.md)
