Skip to main content

Export contacts

POST 

/api/partner-gateway/exports/contacts

Queues an export of the contacts of your account, as a CSV file (the default) or an Excel file.

  • What to export: listIds for the contacts of one or more contact lists, contactIds for specific contacts, or neither for every contact of your account (send an empty object, {}).
  • Exclusions: with listIds, or with neither, excludeContactIds leaves those contacts out.
  • Format: exportFormat is CSV or EXCEL.
  • The answer is 202 with an empty body, so without an export ID: the job is queued, not completed.
  • Get the file: poll GET /exports every 5-10 seconds. The export is listed only once its file is ready, already with isAvailableForDownload true. Then call GET /exports/{exportId} with its id for the download URL. An export whose generation fails is never listed.

A regenerated export is not always the same export. POST /exports/{exportId} does not apply excludeContactIds again, and an export of specific contactIds comes back as an export of all your contacts. To repeat such an export exactly, call this endpoint again.

Request​

Responses​

Export queued. No response body.