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

# List sessions

**GET** `/titan/admin/sessions`

## Query parameters

- `state: optional string`

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

- `deployment_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`

  - `created_at: string`

  - `deployment_id: string`

  - `expires_at: string`

  - `instance_id: string`

  - `kill_scope: string`

    One of: `"none"`, `"session"`, `"agent"`, `"deployment"`, `"workspace"`, `"organization"`, `"unknown"`

  - `killed: boolean`

  - `lease_expires_at: string`

  - `runtime_principal_id: string`

  - `session_id: string`

  - `state: string`

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

- `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/sessions' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (200)

```json
{
  "items": [
    {
      "created_at": "2026-01-01T00:00:00Z",
      "deployment_id": "string",
      "expires_at": "2026-01-01T00:00:00Z",
      "instance_id": "string",
      "kill_scope": "none",
      "killed": true,
      "lease_expires_at": "2026-01-01T00:00:00Z",
      "runtime_principal_id": "string",
      "session_id": "string",
      "state": "active"
    }
  ],
  "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"
  }
}
```
