Skip to main content
The restore endpoints give you complete read access to your agent’s confirmed checkpoint history. You can fetch the latest snapshot by agent ID, retrieve any earlier checkpoint by its exact sequence number for rollbacks or debugging, or list the full lineage chain to reconstruct and verify the parent-hash ancestry. In all cases, the server returns the storage URL pointing to the encrypted ciphertext blob — you download and decrypt it locally using your client key, and independently verify it before trusting it (see Verified Semantic Recall).

GET /snapshot/:agent_id/latest

Retrieve the metadata and storage URL for the most recent confirmed snapshot of a given agent.
Path Parameters:

Response — 200 OK

string
UUID of the snapshot record.
string
The agent identifier this snapshot belongs to.
integer
Sequence number of this checkpoint.
string
Storage path (object key) of the ciphertext blob.
integer
Byte size of the stored ciphertext.
integer
Credits debited when this snapshot was uploaded. 0 for free-tier project tokens.
string
Client-supplied payload hash recorded at upload time — re-derive and compare this before trusting the decrypted payload.
string
Confirmation status — "confirmed" for all retrievable snapshots.
string
ISO-8601 timestamp of when this snapshot was confirmed.
string
Public URL you can use to download the ciphertext blob directly from object storage.

curl Example


GET /snapshot/:agent_id/:sequence

Retrieve metadata and the storage URL for a checkpoint at a specific sequence number. Use this for rollbacks, audits, or debugging a particular checkpoint in the agent’s history.
Path Parameters:

Response — 200 OK

The response schema is identical to GET /snapshot/:agent_id/latest above — a receipt object and a ciphertextUrl. Returns 404 snapshot_not_found if no confirmed snapshot exists at that exact sequence number.

curl Example


GET /snapshot/:agent_id/lineage

Fetch an ordered list of confirmed sequence numbers, payload hashes, and storage paths for an agent. Use this to reconstruct the full parent-hash ancestry chain and verify historical integrity locally.
Path Parameters: Query Parameters:

Response — 200 OK

Returns a JSON array of lineage entries ordered descending by sequence number (newest first). Note this is a bare array, not wrapped in an object:
integer
Sequence number of this checkpoint entry.
string
Storage path of this checkpoint’s ciphertext blob.
string | null
Storage path of the parent checkpoint, or null for the genesis snapshot.
string
Hash of the payload recorded at upload time.
string
ISO-8601 timestamp of when this snapshot was confirmed.

curl Example