SET API · Account export
Export everything your business holds at SET
POST/v1/exports
Starts an export of everything your business holds at SET: a snapshot time (asOf) and a count of each kind of object created at or before it. Read the objects with GET /v1/exports/{export}/objects.
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Notes
- Needs a key with both the
writeand theapprovescopes: a key withoutapproveanswers 403scope_missing, and so does a key withoutwrite. Any account type. No body. - Answers 201 at once. Nothing is generated in the background: the export is the snapshot time plus its counts, and the lines are read at
objects. countslists every kind, including those at 0.totalis their sum.- The audit log and events are kinds of the export, so the calls made before it are counted.
createdByis the id of the key that asked.- 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 scope_missing