---
title: "List policy versions"
url: https://hexelstudio.com/docs/api/titan/management/versions
---

# List policy versions

**GET** `/titan/management/deployments/{id}/policy/versions`

## Path parameters

- `id: string`

## Query parameters

- `cursor: optional string`

  Opaque cursor from next_cursor.

- `limit: optional integer`

  Default: `50`

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

## Returns

`200` Organization-scoped result. (`PolicyVersionPage`)

- `current_source_revision: integer`

- `deployment_id: string`

- `enforcement_deployment_id: string`

- `items: array of object`

  - `compiled_digest: string`

  - `created_at: string`

  - `created_by: optional string`

  - `current: boolean`

  - `note: optional string`

  - `origin: string`

  - `policy_source_id: string`

  - `rollback_of_revision: optional integer`

  - `source_digest: string`

  - `source_revision: integer`

  - `suggestion_id: optional string`

- `next_cursor: optional string`

## Errors

- `400` Invalid request, path or query; on a rollback, INVALID_REQUEST when neither base_source_revision nor If-Match is given, If-Match is *, the body is not the closed rollback body or the note is not 1-500 characters without control characters; POLICY_INVALID, POLICY_TERM_UNSUPPORTED or OBLIGATION_PROFILE_UNKNOWN when the version's source is no longer valid for the deployment (the codes a PUT .../policy of it gets: for example a toolkit the capability selection no longer has, or a watch-only rule while watch-only rules is off).
- `401` Missing or invalid authenticated context.
- `403` Organization mismatch, or an IAM action is denied: to list, read and compare, both titan:enforcement_deployment:read (as GET .../policy) and titan:policy:read; to roll back, both titan:enforcement_deployment:create (as PUT .../policy) and titan:policy:publish.
- `404` Unknown or foreign deployment; POLICY_VERSION_NOT_FOUND when the history does not hold the revision (never recorded, or pruned past the 1000 kept); NOT_FOUND for every history path while the caller's organization does not have policy history.
- `405` HTTP method is not supported on this route.
- `409` POLICY_REVISION_STALE when the base (base_source_revision or If-Match) is not the policy in force; POLICY_VERSION_CURRENT when the version's content is the policy in force; the deployment is not a provisioned Titan Cloud or Titan Dedicated deployment (DEPLOYMENT_NOT_PROVISIONED), is retired (DEPLOYMENT_RETIRED) or has an operation in progress (OPERATION_IN_PROGRESS).
- `502` The deployment's Configuration Authority refused or answered unexpectedly (closed code).
- `503` Local storage or the deployment's Configuration Authority unavailable.

## Example

```bash
curl --request GET \
  --url 'https://api.hexelstudio.com/v1/titan/management/deployments/{id}/policy/versions' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (200)

```json
{
  "current_source_revision": 0,
  "deployment_id": "string",
  "enforcement_deployment_id": "string",
  "items": [
    {
      "compiled_digest": "string",
      "created_at": "2026-01-01T00:00:00Z",
      "created_by": "string",
      "current": true,
      "note": "string",
      "origin": "string",
      "policy_source_id": "string",
      "rollback_of_revision": 0,
      "source_digest": "string",
      "source_revision": 0,
      "suggestion_id": "string"
    }
  ],
  "next_cursor": "string"
}
```

### Response (400)

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

### Response (401)

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

### Response (403)

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

### Response (404)

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

### Response (405)

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

### Response (409)

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

### Response (502)

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

### Response (503)

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