---
title: "List a session's child sessions"
method: GET
path: "/api/v0/sessions/{sessionId}/children"
tags: ["Sessions"]
---

# List a session's child sessions

`GET /api/v0/sessions/{sessionId}/children`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/sessions/{sessionId}/children`
- Auth: HTTP bearer

Returns the caller's sessions spawned under one parent session (Task subagents, mission agents) with their last reported status and the state of the computer each runs on, oldest first. A member of a shared workstream lists the agents under it they are a member of instead. Computer details are only included for computers the caller owns. Artifacts are included only when `includeArtifacts=true`; what each session is waiting on only when `includeAttention=true`; token usage and Factory Standard Credits, rolled up with each session's Task subagents, only when `includeUsage=true`. Archived sessions are left out unless `includeArchived=true`, which lists them with `archivedAt` and sets `archivedIncluded` on the response. For enterprise organizations, `usage.tokenCountsScope` is `byok_only` and token counts cover only calls the client reported as made with the organization's own provider keys (BYOK); managed-inference calls, and usage reported before clients tagged BYOK calls, count as zero. Credits always cover every call.

## Path parameters

- `sessionId` string, required: The parent session id

## Query parameters

- `includeArtifacts` boolean: Whether to include each child session’s integration artifacts (pull requests, issues, pages).
- `includeAttention` boolean: Whether to include what each child session is waiting on (a permission prompt or a question).
- `includeUsage` boolean: Whether to include each child session’s token usage and Factory Standard Credits, rolled up with its Task subagents.
- `includeArchived` boolean: Whether to include archived child sessions, such as a mission agent whose computer was reclaimed, each with its archivedAt. The response sets archivedIncluded when it does.

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- ListChildSessions200ResponseBody
  - `sessions` object[], required
    - `sessionId` string, required: Session ID
    - `title` string, required: Session title; empty until the session has one
    - `status` 'idle' | 'pending' | 'running', required: Current session execution status
    - `createdAt` integer, required: Creation timestamp (Unix ms)
    - `updatedAt` integer, required: Last update timestamp (Unix ms); the status has held at least since then
    - `tags` object[]: Session tags, including any mission identity
      - `name` string, required
      - `metadata` object
    - `artifacts` object[]: Integration artifacts the session created; only returned when includeArtifacts=true
      - `id` string, required
      - `url` string, uri, required
      - `title` string
      - `externalId` string
      - `provider` 'github' | 'gitlab' | 'linear' | 'jira' | 'notion' | 'web' | 'local' | 'connector', required
      - `kind` 'pull_request' | 'issue' | 'document' | 'record' | 'file' | 'link', required
      - `connector` string
      - `fileRole` 'spec'
      - `action` 'create' | 'update' | 'delete' | 'view' | 'close' | 'merge'
      - `source` 'tool' | 'classifier' | 'user_message', required
      - `createdAt` string, date-time, required
      - `toolCallId` string
    - `attention` object, nullable: What the session is waiting on, or null when it is not blocked; only returned when includeAttention=true
      - `kind` 'permission' | 'ask-user', required
      - `since` integer, required
    - `usage` object, nullable: Token usage and Factory Standard Credits for the session and its Task subagents, or null when it has not reported any; factoryCredits is omitted when the organization hides billable usage. For enterprise organizations tokenCountsScope is byok_only and the token counts cover only calls the client reported as BYOK; managed-inference calls, and usage reported before clients tagged BYOK calls, count as zero. Only returned when includeUsage=true
      - `inputTokens` number, required
      - `outputTokens` number, required
      - `cacheCreationTokens` number, required
      - `cacheReadTokens` number, required
      - `factoryCredits` number
      - `tokenCountsScope` 'byok_only'
    - `archivedAt` integer, nullable: When the session was archived (Unix ms), or null when it is archived but its stored marker has no readable time; absent for a live session. Only returned when includeArchived=true
    - `computerId` string, nullable, required: The computer id the session records, or null when it records none, as for an agent an orchestrator starts on its own machine. Act on an agent by its session id: session operations find the machine it runs on, and GET /api/v0/sessions/{sessionId} reports it
    - `computer` object, nullable, required: The computer that computerId names, when the caller owns it; null when computerId is null, that computer is gone, or it is someone else's. Compare with computerId to tell these apart
      - `id` string, required
      - `name` string, required
      - `status` 'provisioning' | 'active' | 'error'
      - `providerStatus` 'requested' | 'provisioning' | 'booting' | 'running' | 'paused' | 'snapshotting' | 'terminating' | 'terminated' | 'failed' | 'null', nullable: Last known sandbox lifecycle state; null for BYOM computers. More states may be added, so treat a value you do not know as unknown.
      - `templateId` string, nullable, required
  - `archivedIncluded` true: Present when the list includes archived child sessions, as includeArchived=true asks for

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `429`: Response for status 429
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-14** `9fb2e1b1ec61`: 4 breaking
  - the `sessions/items/artifacts/items/externalId` response property's maxLength was unset from `128` for the response status `200`
  - the `sessions/items/artifacts/items/id` response property's maxLength was unset from `2048` for the response status `200`
  - the `sessions/items/artifacts/items/title` response property's maxLength was unset from `500` for the response status `200`
  - the `sessions/items/artifacts/items/url` response property's maxLength was unset from `2048` for the response status `200`
- **2026-11-12** `b6a46c415079`: 16 breaking, 2 warning, 31 info
  - removed the enum value `false` from the `query` request parameter `includeArchived`
  - removed the enum value `false` from the `query` request parameter `includeArtifacts`
  - removed the enum value `false` from the `query` request parameter `includeAttention`
  - removed the enum value `false` from the `query` request parameter `includeUsage`
  - …45 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/sessions/:sessionId/children/get.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
