---
title: "List durable sessions"
url: https://hexelstudio.com/docs/api/titan/administration/durable-sessions
---

# List durable sessions

**GET** `/titan/admin/durable-sessions`

The deployment's durable sessions (dss_), newest first, with their live legs and quarantine. state is the effective state at the read, which the state filter matches: a live session past its idle expiry or maximum is expired, and an active one without a usable leg is idle, before the Broker's sweep records it. Control one with POST /admin/sessions/{id}/restrict and /admin/agent-controls:* (target_type durable_session).

## Query parameters

- `state: optional string`

  One of: `"active"`, `"idle"`, `"suspended"`, `"closed"`, `"killed"`, `"expired"`

- `deployment_id: optional string`

- `agent_id: optional string`

- `limit: optional integer`

  Default: `50`

- `offset: optional integer`

  Default: `0`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

- `Titan-Enforcement-Deployment: optional string`

  The enforcement deployment this call acts on (its td-... id). Required on the shared plane, where one Gateway serves many tenants and there is no default: a missing, unknown, repeated or other organization's deployment answers 403, like a failed authorization. Optional on a dedicated cell, which defaults to its one deployment.

## Returns

`200` Successful response; exact status varies by operation. (`object`)

- `items: array of object`

  - `agent_id: string`

  - `created_at: string`

  - `deployment_id: string`

  - `durable_session_id: string`

  - `environment_id: string`

  - `expires_at: string`

  - `idle_expires_at: string`

  - `last_activity_at: string`

  - `live_legs: integer`

  - `parent_session_id: optional string`

    A durable child's parent runtime session (the Broker's enforced lineage); absent when not a child.

  - `quarantined: boolean`

  - `root_session_id: optional string`

    A durable child's tree root; absent when not a child.

  - `runtime_principal_id: string`

  - `state: string`

    One of: `"active"`, `"idle"`, `"suspended"`, `"closed"`, `"killed"`, `"expired"`

  - `workspace_id: string`

- `limit: integer`

- `offset: integer`

## Errors

- `400` Admin error
- `403` Admin error
- `503` Admin error

## Example

```bash
curl --request GET \
  --url 'https://api.hexelstudio.com/v1/titan/admin/durable-sessions' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (200)

```json
{
  "items": [
    {
      "agent_id": "string",
      "created_at": "2026-01-01T00:00:00Z",
      "deployment_id": "string",
      "durable_session_id": "string",
      "environment_id": "string",
      "expires_at": "2026-01-01T00:00:00Z",
      "idle_expires_at": "2026-01-01T00:00:00Z",
      "last_activity_at": "2026-01-01T00:00:00Z",
      "live_legs": 0,
      "parent_session_id": "string",
      "quarantined": true,
      "root_session_id": "string",
      "runtime_principal_id": "string",
      "state": "active",
      "workspace_id": "string"
    }
  ],
  "limit": 0,
  "offset": 0
}
```

### Response (400)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (403)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (503)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
