Skip to the page
Chapters

SFTP account

List the dropped files

GET/api/v1/sftp-account/files

The files taken from the account's IN and TEST/IN folders, newest first, one page at a time, each with what became of it: how many claims it made and how many it refused, and the names of the 997, 277 and report written for it. A key sees the files of its own mode only: a test key lists TEST/IN files, and asking it for mode=live returns none. The claims themselves are in GET /claims.

Needs a key with read permission.

Request

Query parameters

Query parameters
NameTypeRequiredDescription
limitintegeroptionalHow many items to return, from 1 to 100. Default 25.At least 1.At most 100.
cursorstringoptionalThe next_cursor of the previous page, to get the page after it. Opaque: pass it back unchanged.
modestringoptionalOnly files of this mode. A key sees only the files of its own mode: asking for the other mode returns none.One of: `test`, `live`.

Response

A page of dropped files. Status 200.

Response fields
NameTypeDescription
dataarray of object
data[].objectstringAlways `sftp_file`.
data[].namestringThe file's name as it was dropped.
data[].modestringtest for a file dropped in TEST/IN, live for IN.One of: `test`, `live`.
data[].sizeintegerBytes.At least -9007199254740991.
data[].taken_atstring (date-time)When Claim House took the file from the folder.
data[].resultstringstored: the file was read and its claims made or refused one by one. refused: the file was refused whole (too large, too many claims, or not an 837D).One of: `stored`, `refused`.
data[].file_idstring or nullThe stored copy of the file, the same ID Batches & files shows. Null for a file refused without being stored.
data[].claims_createdintegerAt least -9007199254740991.
data[].claims_refusedintegerAt least -9007199254740991.
data[].responsesarray of stringThe names of the files written to OUT (or TEST/OUT) for it: its 997, its 277 and its report. Empty until the file has been read.
next_cursorvaluePass as cursor to get the next page; null when there is no next page.

Errors

Errors
HTTP statusCodeWhat it means
401UNAUTHORIZEDA valid API key is required. Send it as "Authorization: Bearer <key>".
403PERMISSION_DENIEDThis API key is not allowed to do that.
422INVALID_REQUESTThe request is not valid.
504TIMEOUTThe request took too long to finish. It may still have taken effect: look it up before sending it again with a new Idempotency-Key. What it made is found with GET /api/v1/eligibility?request_id=<this request_id>, and the same filter on /api/v1/claims and /api/v1/attachments (a key with read permission).
500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

Example

Example request

Shell
curl "https://sandbox.myclaimhouse.com/api/v1/sftp-account/files?limit=25" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY"

Example response: 200

JSON
{
  "data": [
    {
      "object": "sftp_file",
      "name": "claims-0924.837",
      "mode": "test",
      "size": 4821,
      "taken_at": "2026-09-24T21:01:00+00:00",
      "result": "stored",
      "file_id": "fil_01JM000000E00800000000008J",
      "claims_created": 2,
      "claims_refused": 1,
      "responses": [
        "claims-0924.837.997",
        "claims-0924.837.277",
        "claims-0924.837.report.txt"
      ]
    }
  ],
  "next_cursor": null
}