---
title: "Get fleet summary"
url: https://hexelstudio.com/docs/api/titan/administration/summary
---

# Get fleet summary

**GET** `/titan/admin/fleet/summary`

Fleet counts per agent deployment over the fleet window (newest 5000 sessions): sessions by state, outdated, stale artifact digest, health, and the reported artifact digests. Only while fleet health lists the enforcement deployment; otherwise NOT_FOUND.

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

- `deployments: array of object`

  - `agent_id: string`

  - `artifact_digests: array of object`

    - `artifact_digest: string`

    - `sessions: integer`

  - `current_artifact_digest: string`

  - `deployment_id: string`

  - `health: object`

    - `degraded: integer`

    - `healthy: integer`

    - `unhealthy: integer`

    - `unknown: integer`

  - `outdated: integer`

  - `sessions: integer`

  - `stale_artifact: integer`

  - `states: object`

    - `connected: integer`

    - `disconnected: integer`

    - `idle: integer`

    - `killed: integer`

    - `suspended: integer`

- `sessions_scanned: integer`

- `truncated: boolean`

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

### Response (200)

```json
{
  "deployments": [
    {
      "agent_id": "string",
      "artifact_digests": [
        {
          "artifact_digest": "string",
          "sessions": 0
        }
      ],
      "current_artifact_digest": "string",
      "deployment_id": "string",
      "health": {
        "degraded": 0,
        "healthy": 0,
        "unhealthy": 0,
        "unknown": 0
      },
      "outdated": 0,
      "sessions": 0,
      "stale_artifact": 0,
      "states": {
        "connected": 0,
        "disconnected": 0,
        "idle": 0,
        "killed": 0,
        "suspended": 0
      }
    }
  ],
  "sessions_scanned": 0,
  "truncated": true
}
```

### 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"
  }
}
```
