Skip to main content

Exports

Quick guide​

Exports are generated in the background: the request is queued, and the file is ready later.

  1. Request the export with POST /exports/contacts, POST /exports/delivery-reports or, for the API send history, POST /messages/history/export. The answer is 202, with no export ID.
  2. Wait for it by calling GET /exports every 5 to 10 seconds: the export shows up there only when its file is ready. Recognise it by its type and its creation time. An export that fails never shows up: if nothing appears within a reasonable time, request it again.
  3. Download it: GET /exports/{exportId} returns a temporary download link. Call it again whenever you need a new link.

An export can be downloaded for 7 days. After that, POST /exports/{exportId} generates it again, under a new ID.

Use cases: UC-018: Export Delivery Reports · UC-002: Complete Campaign Report