Skip to main content
The GET /head endpoint returns the single most recent confirmed entry in your agent’s replication log: its sequence number, Merkle root, and last-updated timestamp. It is a single indexed-column lookup, designed for fast polling — ideal as a pre-flight check before a replay, as a sync-status heartbeat, or to verify that a just-submitted chunk was accepted as the new head.

Request

This endpoint takes no query parameters. The agent is identified entirely from the bearer token.

Response

200 OK

integer
Sequence number of the latest confirmed replication entry for this agent.
string
SHA-256 Merkle root recorded at the time the latest chunk was written.
string
ISO-8601 timestamp of when the current head was last updated.

Example Response

Errors

string
no_replication_entries — returned with HTTP 404 when the authenticated agent has not pushed any replication chunks yet. This is expected for freshly initialized agents that have not called POST /replicate.

curl Example