Skip to main content
GET
/
ds
/
{bucket}
/
{stream}
/
snapshot
curl -L 'https://stream.tonbo.dev/ds/demo/hello/snapshot'

Latest snapshot

GET /ds/{bucket}/{stream}/snapshot redirects to the latest published snapshot’s offset-specific URL.
bucket
string
required
Bucket ID.
stream
string
required
Stream ID.
StatusMeaning
307Redirect to /ds/{bucket}/{stream}/snapshot/{offset}.
404Stream not found, expired, or no snapshot has been published.
Response headers include Location, Stream-Next-Offset, Stream-Snapshot-Offset, and Stream-Up-To-Date.

Snapshot at offset

GET /ds/{bucket}/{stream}/snapshot/{offset} returns the snapshot blob at a specific offset.
offset
string
required
Snapshot offset (hex or decimal token).
StatusMeaning
200Snapshot blob returned.
404Stream, snapshot, or offset not found.
Response headers include Content-Type, Stream-Next-Offset, Stream-Snapshot-Offset, Stream-Up-To-Date, and Stream-Closed.
curl -L 'https://stream.tonbo.dev/ds/demo/hello/snapshot'
Snapshot reads go through a linearizable freshness check to ensure you see the latest published snapshot. If the snapshot blob hasn’t replicated to the current node yet, the request may be redirected to the leader.
See snapshots for the snapshot lifecycle.