SET API · SET Close
Every file uploaded, with its counts (the file itself is not kept)
GET/v1/close/imports
Lists every file uploaded to the business's sources, newest first, with its row counts and file hash. The file itself is not kept. Paged by createdBefore.
Query parameters
createdBeforestring- The last answer's
nextCreatedBefore, passed back unchanged, or an ISO 8601 time: imports created strictly before it. limitinteger- 1 to 100; 50 by default.
Notes
- SET Close is switched on per deployment; when it is off, every
/v1/closecall answers 403close_offafter the key is checked.GET /v1/capabilitiesshows it asfeatures.close. - Needs a key with the
readscope. Platform and business keys can both call it. - A file refused whole (400
csv_invalid, 413import_too_large, 429close_budget_reached) is not listed. - An upload of a file already sent is listed too, with
createdRecords0. - A listed import carries no
rejections,unchanged,matchedorexceptions: those come only in the answer to the upload. - There is no source filter and no call for one import by id.
- The example was made with a sandbox key (
sandbox: true). - This example is a recorded run of SET's own code (wallet release
e9b03447) with a sandbox key; ids and times are that run's.
Errors
403 close_off400 created_before_invalid