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

# List policy suggestions

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

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

## Returns

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

- `base_source_digest: string`

- `deployment_id: string`

- `drafts_enabled: optional boolean`

- `enforcement_deployment_id: string`

- `evidence_truncated: boolean`

- `suggestions: array of object`

  - `evidence: optional object`

    - `count: optional integer`

    - `first_at: optional string`

    - `last_at: string`

    - `sessions: optional integer`

    - `window_days: integer`

  - `evidence_digest: string`

  - `group: optional object`

    - `agent_id: string`

    - `capability_id: string`

    - `delegated: boolean`

    - `deployment_id: string`

    - `operation: string`

    - `resource_id: optional string`

    - `resource_type: string`

  - `kind: string`

  - `options: array of object`

    - `approval_profile_required: boolean`

    - `option: string`

  - `rule_ids: array of string`

  - `suggestion_id: string`

  - `template: optional object`

    - `capability_bundle_digest: string`

    - `capability_bundle_generation: integer`

    - `name: string`

    - `rules_digest: string`

    - `template_id: string`

    - `template_version: integer`

  - `text: optional string`

- `templates_unavailable: optional boolean`

## Errors

- `400` Invalid request, path or query (a preview needs exactly one option and at most one approval_profile_id; a template's scope is agent_id, repeated, or all_agents=true).
- `401` Missing or invalid authenticated context.
- `403` Organization mismatch, or the IAM action is denied: titan:policy:read to list and preview, titan:policy:publish to accept or dismiss; FORBIDDEN too when the deployment's Gateway refuses the caller's own token for its policy signals (titan:policy:read and titan:ledger:read).
- `404` Unknown or foreign deployment; SUGGESTION_NOT_FOUND when the suggestion is not open (unknown, dismissed or accepted); NOT_FOUND for every suggestions path while the caller's organization does not have policy suggestions.
- `405` HTTP method is not supported on this route.
- `409` SUGGESTION_STALE when base_source_digest is not the policy in force (read the suggestions again); 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` POLICY_SIGNALS_UNAVAILABLE when the deployment's Gateway evidence (GET /titan/v1/admin/policy-signals, read with the caller's own token) cannot be read or does not check out; CAPABILITY_BUNDLE_UNAVAILABLE when a suggestion is not found while the deployment's signed capability bundle (the source of template suggestions) cannot be read from its Configuration Authority or does not verify against the deployment's configuration key (the list then answers 200 with templates_unavailable); IDENTITY_BUNDLE_UNAVAILABLE when a template's agent_ids cannot be checked against the deployment's signed identity bundle; 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/suggestions' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (200)

```json
{
  "base_source_digest": "string",
  "deployment_id": "string",
  "drafts_enabled": true,
  "enforcement_deployment_id": "string",
  "evidence_truncated": true,
  "suggestions": [
    {
      "evidence": {
        "count": 0,
        "first_at": "2026-01-01T00:00:00Z",
        "last_at": "2026-01-01T00:00:00Z",
        "sessions": 0,
        "window_days": 0
      },
      "evidence_digest": "string",
      "group": {
        "agent_id": "string",
        "capability_id": "string",
        "delegated": true,
        "deployment_id": "string",
        "operation": "string",
        "resource_id": "string",
        "resource_type": "string"
      },
      "kind": "string",
      "options": [
        {
          "approval_profile_required": true,
          "option": "string"
        }
      ],
      "rule_ids": [
        "string"
      ],
      "suggestion_id": "string",
      "template": {
        "capability_bundle_digest": "string",
        "capability_bundle_generation": 0,
        "name": "string",
        "rules_digest": "string",
        "template_id": "string",
        "template_version": 0
      },
      "text": "string"
    }
  ],
  "templates_unavailable": true
}
```

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