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

# List workstreams for a home screen

`GET /api/v0/sessions/workstreams/home`

## Request

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

Returns a page of the workstreams you started and the ones shared with you, most recently updated first. Each carries its status, what it waits on, how many items in your inbox from it need your action, and a one-line preview of the newest one. The inbox fields are null when your inbox is not enabled or cannot be read, and the preview is null when the workstream has nothing in your inbox. Workstreams shared with you are listed only when shared sessions are enabled for you. Workstreams must be available to your organization; otherwise the request fails with 403.

## Query parameters

- `limit` integer: Maximum number of workstreams to return (1-50)
- `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.

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- ListHomeWorkstreams200ResponseBody
  - `workstreams` object[], required
    - `sessionId` string, required: The workstream's id: its orchestrator session ID
    - `title` string, required: Workstream title; empty until it has one
    - `status` 'idle' | 'pending' | 'running' | 'null', nullable, required: What the orchestrator is doing; null for a status this client does not know
    - `access` 'owner' | 'member', required: `owner` for a workstream you started, `member` for one shared with you. More values may be added; treat a value you do not know as `member`
    - `attention` object, nullable: What the orchestrator is waiting on (a permission prompt or a question), or null when it is not blocked; absent when session storage could not say, and for a workstream shared with you
      - `kind` 'permission' | 'ask-user': What the session waits on; absent for a kind this client does not know
      - `since` number: When the wait began (Unix ms)
    - `needsActionCount` integer, nullable, required: Items in your inbox from this workstream that need your action; null when your inbox could not be read (it is not enabled for you, or it is unavailable)
    - `preview` object, nullable, required: The newest item this workstream has in your inbox; null when it has none or your inbox could not be read
      - `text` string, required: One line about the workstream's latest activity: the text your inbox shows for the newest item it has there, collapsed to one line of at most 140 characters
      - `at` integer, required: When that item was last active (Unix ms)
    - `createdAt` integer, required: Creation timestamp (Unix ms)
    - `updatedAt` integer, required: Last update timestamp (Unix ms)
  - `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-19** `06762b4102b4`: 1 info
  - endpoint added

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