---
title: "List workstreams"
method: GET
path: "/api/v0/sessions/workstreams"
tags: ["Sessions"]
---

# List workstreams

`GET /api/v0/sessions/workstreams`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/sessions/workstreams`
- Auth: HTTP bearer

Returns a paginated list of the workstreams you started, most recently updated first, with the same session fields as `GET /api/v0/sessions`. The `sessionIds` filter is not supported on this endpoint. Agents a workstream starts are not listed; each workstream carries its mission-v2 tag. Workstreams must be available to your organization; otherwise the request fails with 403.

## Query parameters

- `limit` integer: Maximum number of items to return (1-100)
- `cursor` string: The nextCursor of the previous page. Workstreams are ordered by last update, so one updated while you page can move to an earlier page. A cursor that names none of your sessions starts the list again from the most recently updated workstream.

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- ListWorkstreams200ResponseBody
  - `sessions` object[], required
    - `sessionId` string, required: Session ID
    - `parent_session_id` string: Immediate parent session ID for a Task subagent, if one exists
    - `title` string: Session title
    - `status` 'idle' | 'pending' | 'running', required: Current session execution status
    - `messageCount` integer, required: Number of messages in session
    - `createdAt` integer, required: Creation timestamp (Unix ms). Read from a computer with computerId, a single session reports its earliest message's creation time (the request time when it has no messages), and a list reports when the session file was created (its last update time when the computer did not record that)
    - `updatedAt` integer, required: Last update timestamp (Unix ms). Read from a computer with computerId, a single session reports its latest message's update time (the request time when it has no messages)
    - `completedAt` integer: Completion timestamp (Unix ms)
    - `computerId` string: The computer the session runs on: your computer on the session's host, otherwise the computer the session records. Absent when its host has none of your computers and it records none. Read from a computer with computerId, that computer
    - `sessionSettings` object
      - `model` string
      - `reasoningEffort` 'none' | 'dynamic' | 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max'
      - `interactionMode` 'auto' | 'spec' | 'agi' | 'mission'
      - `autonomyLevel` 'off' | 'low' | 'medium' | 'high'
      - `autonomyMode` 'normal' | 'spec' | 'auto-low' | 'auto-medium' | 'auto-high': Deprecated: use interactionMode + autonomyLevel instead.
      - `specModeModel` string
      - `specModeReasoningEffort` 'none' | 'dynamic' | 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max'
      - `providerLock` 'anthropic' | 'openai' | 'generic-chat-completion-api' | 'factory' | 'google' | 'xai' | 'bedrock-converse'
      - `providerLockTimestamp` string
      - `apiProviderLock` 'bedrock' | 'anthropic' | 'vertex_anthropic' | 'bedrock_anthropic' | 'bedrock_converse' | 'bedrock_openai' | 'openai' | 'azure_openai' | 'azure_anthropic' | 'google' | 'xai' | 'mistral' | 'fireworks' | 'baseten' | 'together' | 'snowflake' | 'databricks'
      - `archivedAt` string
      - `tags` object[]
        - `name` string, required
        - `metadata` object
      - `worktree` object
        - `branch` string
        - `lifecycle` 'ephemeral' | 'persistent'
        - `path` string
        - `parentWorktreePath` string
        - `removedAt` string
        - `repoRoot` string, required
        - `setupProfileId` string
      - `enabledToolIds` string[]
      - `disabledToolIds` string[]
      - `restrictToolIds` string[]
      - `toolExecutionMode` 'direct_only' | 'script_only'
      - `allowSubagentsInScripts` boolean
      - `compactionModel` string
      - `compactionThresholdCheckEnabled` boolean
    - `tags` object[]: Session tags. A workstream carries a mission-v2 tag whose metadata has kind "orchestrator" and a missionId equal to its own sessionId; spaceId appears once its shared folder is attached
      - `name` string, required
      - `metadata` object
    - `artifacts` object[]: Integration artifacts (pull requests, issues, pages) the session touched, oldest first
      - `id` string, required
      - `url` string, 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, required
      - `toolCallId` string
    - `factoryCredits` number: Total Factory credits consumed by the session and its subagents
  - `pagination` object, required
    - `hasMore` boolean, required: Whether there are more items after this page
    - `nextCursor` string, nullable, required: Cursor to use for the next page, null if no more pages

## 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`: 1 info
  - added the non-success response with the status `404`
- **2026-11-12** `b6a46c415079`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/sessions/workstreams/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)
