Skip to content
Hexel StudioDocs

Export ledger slice

GET/titan/admin/ledger/export

One page of a session's Agent Ledger entries with the exact event bodies hashed into the deployment chain (RFC 8785 canonical JSON), each entry's prev_digest and entry_digest, the chain head and prune checkpoint read in the same snapshot and, when the Gateway has a slice signing key, an Ed25519 signature over the manifest's canonical bytes, so the pack can be re-hashed offline with titan-ledger-verify -pack. Entry digest = sha256(prev_digest || canonical event). The bodies are whole: ids, enums, digests and, on a file-result entry, the stored file's name, type and size, in every data mode; never message text, arguments or outputs. After authorization, NOT_FOUND unless the deployment has the export on.

Query parameters

The session whose entries are exported (the entries' session_id).

afteroptional integerint64default: 0

Only entries with a seq above this: the previous page's manifest.next_after.

limitoptional integerdefault: 500

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
manifestobject
signatureoptional object

Errors

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