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.
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
| Name | In | Type | Description |
|---|---|---|---|
| dealIdrequired | path | integer |
Errors
| Code | Meaning |
|---|---|
| 401 | Invalid or missing API key. |
| 403 | The API key lacks the required scope for this operation. |
| 404 | Deal 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