Storage

List files stored by the calling account

Requires scope files:read. Returns the files stored under the calling account, each augmented with its current on chain deal status (best effort) and a public content addressed retrieval URL. Supports folder filtering, name search, sorting, and paging.

GET/api/v1/account/filesTry 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.

Query parameters

NameInTypeDescription
folderquerystringOnly files whose folder equals this value. Pass an empty string for files with no folder. Omit for all files.
qquerystringCase-insensitive substring match on the file name.
sortquerystringdate is newest first, name is A-Z, size is largest first.
offsetqueryintegerNumber of files to skip after filtering and sorting.
limitqueryintegerMaximum number of files to return.

Errors

CodeMeaning
401Invalid or missing API key.
403The API key lacks the required scope for this operation.
cURL
curl https://gateway.kepto.xyz/api/v1/account/files \
  -H "Authorization: Bearer <api-key>"
200 · application/json
{
  "total": 0,
  "folders": [
    "string"
  ],
  "files": [
    {
      "root": "string",
      "name": "string",
      "sizeBytes": 0,
      "createdAt": 0,
      "privacy": "public",
      "dealId": 0,
      "folder": "string",
      "status": "string",
      "contentUrl": "string"
    }
  ]
}