---
title: "Get subagent"
method: GET
path: "/api/v1/subagents/{subagentId}"
tags: ["subagents"]
---

# Get subagent

`GET /api/v1/subagents/{subagentId}`

## Request

- Base URL: `https://api.capy.ai`
- URL: `https://api.capy.ai/api/v1/subagents/{subagentId}`
- Auth: HTTP bearer

## Path parameters

- `subagentId` string, required

## Response `200`

Subagent

- SubagentEncoded
  - `id` string, required
  - `threadId` string, required
  - `parentId` string, required
  - `subagentPath` string, required
  - `taskPath` string, required
  - `projectId` string, nullable, required
  - `title` string, nullable, required
  - `status` 'working' | 'waiting' | 'idle' | 'done' | 'failed', required
  - `archived` boolean, required
  - `usage` UsageTotalsEncoded, required
    - `llmCredits` union, required
      - number
      - 'Infinity' | '-Infinity' | 'NaN'
    - `imageCredits` union, required
      - number
      - 'Infinity' | '-Infinity' | 'NaN'
    - `vmCredits` union, required
      - number
      - 'Infinity' | '-Infinity' | 'NaN'
    - `totalCredits` union, required
      - number
      - 'Infinity' | '-Infinity' | 'NaN'
  - `createdAt` string, required
  - `updatedAt` string, required
  - `lastActivityAt` string, nullable, required

## Other responses

- `401`: capy/Unauthorized
- `403`: capy/Forbidden
- `404`: capy/SubagentNotFound
- `429`: capy/RateLimited

## Changes

- **2026-10-21** `c3356d0715a6`: 2 breaking, 1 info
  - the response's body type changed from `object` to no type for status `403`
  - removed the required property `_tag` from the response with the `403` status
  - added `#/components/schemas/capy_ForbiddenEncoded, #/components/schemas/capy_ForbiddenEncoded` to the response body `anyOf` list for the response status `403`
- **2026-10-07** `ce9732b81ae1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/capy/apis/capy-api/changes/api/v1/subagents/:subagentId/get.md)

---

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