SET API · Account export
An export's objects, as NDJSON
GET/v1/exports/{export}/objects
An export's objects as NDJSON: one JSON object per line, object naming the kind, then the row as SET holds it. Kinds come in the order counts lists them; within a kind, oldest first.
Path parameters
exportstringrequired- The export's id,
exp_and 32 hex characters.
Query parameters
cursorstring- The
SET-Next-Cursorvalue from the previous page, unchanged (400cursor_invalidotherwise). Leave it out for the first page. limitinteger- Lines per page, 1 to 1,000; 500 by default. Outside that range: 400
limit_invalid.
Notes
- Needs a key with the
readscope: a read-only key can page an export that exists. The export must be yours (404not_found). - The body is NDJSON, content type
application/x-ndjson; charset=utf-8, not JSON. - Each line is the row as SET holds it: snake_case field names,
livemodeas 0 or 1, and the provider's object ids. - Response headers:
SET-Export-Linesis the number of lines in this page;SET-Next-CursorandLink rel="next"are present while there may be more. - Follow the cursor until
SET-Next-Cursoris absent; that is the end of the export. Do not count lines to decide you are done: one page visits at most 8 kinds, so a page can hold fewer lines thanlimitbefore the end. - Each object shows its state now, for objects created at or before
asOf. - 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
404 not_found400 cursor_invalid400 limit_invalid