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

# List ledger entries

**GET** `/titan/admin/ledger`

## Query parameters

- `after: optional integer`

  Only entries with a seq above this.

  Default: `0`

- `before: optional integer`

  Only entries with a seq below this (the next page of order=desc).

- `limit: optional integer`

  Default: `100`

- `order: optional string`

  asc: oldest first; desc: the latest entries first.

  One of: `"asc"`, `"desc"`

  Default: `"asc"`

- `event_type: optional string`

  Only entries whose event_type equals this.

- `outcome: optional string`

  Only entries whose outcome equals this.

- `reason_code: optional string`

  Only entries whose reason_code equals this.

- `agent_id: optional string`

  Only entries whose agent_id equals this.

- `deployment_id: optional string`

  Only entries whose deployment_id equals this.

- `session_id: optional string`

  Only entries whose session_id equals this.

- `capability_id: optional string`

  Only entries whose capability_id equals this.

- `workspace_id: optional string`

  Only entries whose workspace_id equals this.

- `environment_id: optional string`

  Only entries whose environment_id equals this.

- `runtime_principal_id: optional string`

  Only entries whose runtime_principal_id equals this.

- `would_decide: optional string`

  Only decision entries a watch-only (observe) rule matched: those whose would_decide is this verdict, or any for all of them.

  One of: `"allow"`, `"require_approval"`, `"deny"`, `"any"`

- `observe_rule_id: optional string`

  Only entries whose would_rule_ids holds this watch-only rule id.

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

- `entries: array of object`

  - `agent_id: string`

  - `approval_exemption: optional string`

    On an allow decision entry that the automatic approval for writes before the attestor exists would otherwise have raised, skipped under an exception: sandbox_confined, a class client write that acts only inside the runtime's isolated sandbox, for a deployment with the exception on. Policy still decided. Absent on every other entry.

    One of: `"sandbox_confined"`

  - `capability_id: string`

  - `control_level: optional string`

    One of: `"REGISTERED"`, `"MEDIATED"`, `"SUPERVISED"`, `"ATTESTED_WORKLOAD"`, `"TITAN_MANAGED"`

  - `created_at: string`

  - `delegated_user: optional string`

    The opaque id of the person the session acted for (S2), on a decision or execution entry. Absent when the session acted for no one.

  - `entry_digest: string`

  - `environment_id: string`

  - `event_type: string`

  - `executor_code: optional string`

    The executor's refusal code behind a PRE_DISPATCH_FAILED execution (for example NO_ELIGIBLE_CONNECTION), or behind an executed browser action the browser executor refused (STEP_UP_REQUIRED, ORIGIN_LEFT or TAB_NOT_ON_ORIGIN; the Defender's browser_refusal_burst rule counts them). Administrators only: the agent is answered PRE_DISPATCH_FAILED, or gets the browser result with its own code. Absent on every other entry.

  - `exported: boolean`

  - `organization_id: string`

  - `outcome: string`

  - `prev_digest: string`

  - `reason_code: string`

  - `runtime_principal_id: string`

  - `seq: integer`

  - `session_id: string`

  - `subject_id: string`

  - `toolkit_variant: optional object`

    On a decision entry about a toolkit family's variant: state inactive on the refusal (reason_code toolkit_variant_inactive) of a tool whose toolkit variant is not the session's active one; state fallback on a call of the standby variant during a fallback window. Absent on every other entry.

    - `active: string`

      The session's active variant of the family; empty when the deployment offers none of the session's order.

    - `family: string`

    - `state: string`

      One of: `"inactive"`, `"fallback"`

    - `v: integer`

      One of: `1`

    - `variant: string`

  - `workspace_id: string`

  - `would_decide: optional string`

    On a decision entry whose policy has watch-only (observe) rules that matched the call or, enforced, would have made it fail closed: the verdict the policy would have given with them enforced. The entry's outcome is the real decision. Absent on every other entry.

    One of: `"allow"`, `"deny"`, `"require_approval"`

  - `would_rule_ids: optional array of string`

    With would_decide: the ids of the watch-only rules involved, sorted.

- `filters: map[string]`

- `order: string`

  One of: `"asc"`, `"desc"`

- `pruned_through_seq: integer`

## Errors

- `400` Admin error
- `403` Admin error
- `500` Admin error

## Example

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

### Response (200)

```json
{
  "entries": [
    {
      "agent_id": "string",
      "approval_exemption": "sandbox_confined",
      "capability_id": "string",
      "control_level": "REGISTERED",
      "created_at": "2026-01-01T00:00:00Z",
      "delegated_user": "string",
      "entry_digest": "string",
      "environment_id": "string",
      "event_type": "string",
      "executor_code": "string",
      "exported": true,
      "organization_id": "string",
      "outcome": "string",
      "prev_digest": "string",
      "reason_code": "string",
      "runtime_principal_id": "string",
      "seq": 0,
      "session_id": "string",
      "subject_id": "string",
      "toolkit_variant": {
        "active": "string",
        "family": "string",
        "state": "inactive",
        "v": 1,
        "variant": "string"
      },
      "workspace_id": "string",
      "would_decide": "allow",
      "would_rule_ids": [
        "string"
      ]
    }
  ],
  "filters": {
    "key": "string"
  },
  "order": "asc",
  "pruned_through_seq": 0
}
```

### Response (400)

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

### Response (403)

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

### Response (500)

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