Content

Retrieve and verify file bytes by deal id

Requires scope files:read. Fetches the file from the provider and re-verifies it against the on-chain Merkle root before returning it.

GET/api/v1/files/{dealId}/contentTry it
iNote
Requires a key with the files:read scope, sent as Authorization: Bearer <api-key>. Keys missing the scope are rejected with 403 — see Authentication.

Path parameters

NameInTypeDescription
dealIdrequiredpathinteger

Errors

CodeMeaning
401Invalid or missing API key.
403The API key lacks the required scope for this operation.
404Deal not found, provider unreachable, or verification failed.
cURL
curl https://gateway.kepto.xyz/api/v1/files/<dealId>/content \
  -H "Authorization: Bearer <api-key>"
200

Raw verified bytes.

application/octet-stream