Skip to main content

Export delivery reports

POST 

/api/partner-gateway/exports/delivery-reports

Queues an export of delivery reports, that is the send and delivery status of each message, as a CSV file (the default) or an Excel file.

  • What to export: either campaignId, for the reports of one campaign, or startDateTime and endDateTime together, for every report of that period.
  • sendType narrows the messages to those sent from the web platform (WEB), through the API (API) or both (WEB_API, the same as leaving it out of a date-range export). A campaignId can be combined only with WEB or with no sendType.
  • Optional filters: sender, recipient and subAccountId. They do not apply to every message: the table below says which.
  • Masked destinations: in the file, the last three characters of every destination are replaced by ***.
  • 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.
Which messages each optional filter applies to
FilterApplies to
recipientEvery message.
senderOn the messages of a campaign or of the web platform, the SMS sender: their RCS and WhatsApp messages are left in. On the messages sent through the API, the SMS sender, the RCS agent or the WhatsApp number.
subAccountIdOnly the messages sent through the API.

After the export expires you can regenerate it with POST /exports/{exportId}: the new export keeps all of its filters and is listed under a new ID.

Request​

Responses​

Export queued. No response body.