Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

SET API · Account export

Export everything your business holds at SET

POST/v1/exports

Key scope: approve · Success: 201

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-Key string
Any unique string, so a retry runs once. See Idempotency.

Notes

  • Needs a key with both the write and the approve scopes: a key without approve answers 403 scope_missing, and so does a key without write. 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.
  • counts lists every kind, including those at 0. total is their sum.
  • The audit log and events are kinds of the export, so the calls made before it are counted.
  • createdBy is 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

All codes: Errors.