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
isAvailableForDownloadtrue. 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(CONTACTSorDELIVERY_REPORT), the parameters of the export indetail,createdAtandexpiresAt.isAvailableForDownloadturns false only onceexpiresAthas 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:
pageis 0-based (default 0) andlimitgoes from 1 to 1000 (default 10).
The export workflow, step by step
- Request the export with
POST /exports/contactsorPOST /exports/delivery-reports. The answer is202with an empty body, so without an export ID. - Call this endpoint every 5-10 seconds until a new entry appears, and recognise your export by its
createdAtanddetail. - Call
GET /exports/{exportId}with theidof that entry to get the time-limited download URL.
Request
Responses
- 200
- 400
- 401
- 500
One page of exports, newest first.
page is negative, limit is below 1 or above 1000, or page multiplied by limit is above 2147483647.
The API key is missing, invalid, or lacks the EXPORTS operation.
Unexpected server error.