Skip to content
Hexel StudioDocs

List ledger entries

GET/titan/admin/ledger

Query parameters

afteroptional integerint64default: 0

Only entries with a seq above this.

beforeoptional integerint64

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

limitoptional integerdefault: 100
orderoptional stringdefault: "asc"

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

One of: "asc", "desc"

event_typeoptional string

Only entries whose event_type equals this.

outcomeoptional string

Only entries whose outcome equals this.

reason_codeoptional string

Only entries whose reason_code equals this.

agent_idoptional string

Only entries whose agent_id equals this.

deployment_idoptional string

Only entries whose deployment_id equals this.

session_idoptional string

Only entries whose session_id equals this.

capability_idoptional string

Only entries whose capability_id equals this.

workspace_idoptional string

Only entries whose workspace_id equals this.

environment_idoptional string

Only entries whose environment_id equals this.

runtime_principal_idoptional string

Only entries whose runtime_principal_id equals this.

would_decideoptional 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_idoptional string

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

Headers

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

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

200Successful response; exact status varies by operation.object

entriesarray of object
filtersmap[string]
orderstring

One of: "asc", "desc"

pruned_through_seqintegerint64

Errors

  • 400Admin error
  • 403Admin error
  • 500Admin error