---
title: "Get a session — root task + the entire descendant chain"
method: GET
path: "/api/sessions/{rootTaskId}"
tags: ["Sessions"]
---

# Get a session — root task + the entire descendant chain

`GET /api/sessions/{rootTaskId}`

## Path parameters

- `rootTaskId` string, required

## Response `200`

Root task + chain (ordered by createdAt)

## Other responses

- `401` — Unauthorized
- `404` — Root task not found

---

[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)
