---
title: "List recent task sessions (root tasks + chain summary)"
method: GET
path: "/api/sessions"
tags: ["Sessions"]
---

# List recent task sessions (root tasks + chain summary)

`GET /api/sessions`

Each item's `root` is a slim task summary by default — the full `task` text is replaced with a bounded `taskPreview` and completion/integration blobs are dropped. Pass `fields=full` to restore the full root `AgentTask`. The full root + descendant chain are on `GET /api/sessions/{rootTaskId}`.

## Query parameters

- `limit` integer, nullable
- `offset` integer, nullable
- `source` string
- `q` string
- `requestedByUserId` string
- `fields` 'full' | 'slim'

## Response `200`

Recent sessions ordered by chain-wide last activity

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
