How it works
When you set an email address for an export:- The export continues processing in the background
- When the export status becomes
"done", an automated email is sent to the specified address - The email contains the download URL for the CSV file
Use cases
This is particularly useful for:- Long-running exports: Set an email and continue working without having to poll the status endpoint
- Automated workflows: Set up scripts that trigger exports and notify specific team members
- Multiple recipients: Call this endpoint with different email addresses to notify multiple people
Email format
The notification email includes:- Campaign name
- Export completion timestamp
- Direct download link to the CSV file
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
The unique identifier of the campaign that was exported
The unique identifier of the export returned by the /start endpoint
The email address to send the export URL to when the export is done