---
title: "Get durable session"
url: https://hexelstudio.com/docs/api/titan/administration/get-durable-session
---

# Get durable session

**GET** `/titan/admin/durable-sessions/{id}`

One durable session with its legs (newest first, at most 100) and its Session Store head.

## Path parameters

- `id: string`

## 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`)

- `durable_session: 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`

- `legs: array of object`

  - `created_at: string`

  - `expires_at: string`

  - `instance_id: string`

  - `session_id: string`

  - `state: string`

    One of: `"active"`, `"suspended"`, `"revoked"`, `"expired"`, `"closed"`

- `store: object`

  - `last_seq: integer`

  - `lease: object`

    - `epoch: integer`

    - `expires_at: string`

    - `holder: string`

## Errors

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

## Example

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

### Response (200)

```json
{
  "durable_session": {
    "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"
  },
  "legs": [
    {
      "created_at": "2026-01-01T00:00:00Z",
      "expires_at": "2026-01-01T00:00:00Z",
      "instance_id": "string",
      "session_id": "string",
      "state": "active"
    }
  ],
  "store": {
    "last_seq": 0,
    "lease": {
      "epoch": 0,
      "expires_at": "2026-01-01T00:00:00Z",
      "holder": "string"
    }
  }
}
```

### Response (400)

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

### Response (403)

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

### Response (404)

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

### Response (503)

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