Skip to contentSkip to navigation

Export Campaign Leads Beta

Download a campaign's leads as a CSV file.

GET /api/v1/campaigns/{campaign_id}/leads/export

Requires 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

StatusDescription
401Missing, invalid, revoked or expired API key
403API key does not have the required scope: read
404Campaign not found
422tagMatch is not any or all, or tags holds an invalid tag name

Rate Limit

  • 100 requests per minute, shared by every bulk call in your workspace. Fixed 60-second window.
  • Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (unix epoch seconds) and X-RateLimit-Bucket (bulk).
  • A 429 response includes a Retry-After header (seconds until the bucket resets).

For client-side patterns, see Rate Limiting.

Was this page helpful?