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
You can set the email notification at any time after starting an export, even if the export is already complete. However, it’s most useful to set it immediately after starting the export.
The notification email includes:
- Campaign name
- Export completion timestamp
- Direct download link to the CSV file
Remember that the CSV file is only available for 24 hours after the export completes.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
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
Email notification set successfully