Content
Retrieve verified bytes by content address
Public: no authentication required. Content addressed retrieval. Looks up the providers holding the given Merkle root, fetches the bytes from each replica in turn, and verifies them against the root before returning the first verified copy. Because the response is committed to by its Merkle root it is immutable: a strong ETag of the root and a one year immutable Cache-Control are returned, and If-None-Match yields 304. GET /api/v1/content/{root} is an identical alias.
iNote
No auth required — this endpoint is public and needs no Authorization header.Path parameters
| Name | In | Type | Description |
|---|---|---|---|
| rootrequired | path | string | The keccak256 Merkle root (content id) of the stored file. |
Headers
| Name | In | Type | Description |
|---|---|---|---|
| If-None-Match | header | string | Send the strong ETag (the root) to receive 304 when unchanged. |
Errors
| Code | Meaning |
|---|---|
| 404 | Unknown root, or no provider returned verified bytes. |
cURL
curl https://gateway.kepto.xyz/content/<root>200
Verified raw bytes.
application/octet-stream