Skip to main content

List exports

GET 

/api/partner-gateway/exports

Returns the exports of your account, one page at a time, newest first. It is the polling endpoint of the export workflow.

  • Which exports: those requested through this API, with any key of your account. Exports requested from the web dashboard are not listed.
  • Listed only when ready: an export appears once its file has been generated, already with isAvailableForDownload true. A queued or running export is not listed.
  • Failures are silent: an export whose generation fails is never listed and reports no error. If no new entry shows up within a reasonable time, request the export again.
  • Each entry carries its type (CONTACTS or DELIVERY_REPORT), the parameters of the export in detail, createdAt and expiresAt. isAvailableForDownload turns false only once expiresAt has passed.
  • Expired exports can be regenerated with POST /exports/{exportId}: the new export is listed under a new ID once its file is ready, while the expired entry stays in the list.
  • Pagination: page is 0-based (default 0) and limit goes from 1 to 1000 (default 10).
The export workflow, step by step
  1. Request the export with POST /exports/contacts or POST /exports/delivery-reports. The answer is 202 with an empty body, so without an export ID.
  2. Call this endpoint every 5-10 seconds until a new entry appears, and recognise your export by its createdAt and detail.
  3. Call GET /exports/{exportId} with the id of that entry to get the time-limited download URL.

Request​

Responses​

One page of exports, newest first.