Export Campaign Leads Beta
Download a campaign's leads as a CSV file.
https://api.foxreach.io/ api/ v1/ campaigns/{campaign_id}/ leads/ exportRequires an API key with the read scope.
Returns text/csv with a Content-Disposition attachment named after the campaign. Up to 100,000 rows, newest enrollment first, soft-deleted leads left out. Cells that start with =, +, - or @ are prefixed with ' so a spreadsheet does not run them. The list filters apply, so you can export only the leads that replied.
Path Parameters
campaign_id string path required The campaign identifier.
Query Parameters
status string query Only leads in this campaign status, for example replied.
search string query Match on email, first name, last name or company.
tags string query Comma-separated tag names.
tagMatch string query any (default) or all of the tags.
Errors
| Status | Description |
|---|---|
401 | Missing, invalid, revoked or expired API key |
403 | API key does not have the required scope: read |
404 | Campaign not found |
422 | tagMatch is not any or all, or tags holds an invalid tag name |
Rate Limit
- 100 requests per minute, shared by every
bulkcall in your workspace. Fixed 60-second window. - Every response includes
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset(unix epoch seconds) andX-RateLimit-Bucket(bulk). - A
429response includes aRetry-Afterheader (seconds until the bucket resets).
For client-side patterns, see Rate Limiting.