Sessions

List workstreams

Changed on

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.

get/api/v0/sessions/workstreams

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

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

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

ListWorkstreams200ResponseBody required
sessions, object[] required
pagination, object required

Changes