Import Leads from List to Campaign
Leads
Import Leads from List to Campaign
Bulk-import every row of a user-owned list into a campaign as leads, pulling enrichment data from profile_data.
POST
Import Leads from List to Campaign
CLI:
Overview
Hydrates canonical Leads from a saved List into the campaign as leads. The server pages through/api/lists/{id}/leads style canonical memberships and maps each Lead into the campaign lead shape.
- LinkedIn campaigns use the Lead’s LinkedIn social URL.
- Email campaigns use the Lead’s work-email contact or email attribute when present.
- Profile fields come from canonical Lead fields and Lead attributes.
AI agent notes
Channel-specific validation. Email campaigns require a usable email on the Lead. LinkedIn campaigns require a real LinkedIn URL on the Lead’s socials.Response shapes.
200— import succeeded (fully or partially);imported,duplicates,invalid,errors,totalall returned.206— a page fetch failed mid-run after earlier rows had already committed.partial: true. Retry with the samelistIdto pick up remaining rows — already-imported leads will be rejected as duplicates.422— the list was readable but zero leads could be imported: every row invalid, every row a duplicate, or a mix of the two with zero new inserts. The response body still contains the count breakdown.500— failed to fetch any list rows, or every insert batch errored.
206 with partial: true rather than rolling back. Agents should surface this as “imported so far” in UI.Dedup semantics. Same as addLeadsToCampaign — the unique constraint is (campaign_id, email) for email campaigns and (campaign_id, linkedin_url) for LinkedIn campaigns.Memory. Paginated fetch + batched insert keeps memory bounded for large lists.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Campaign UUID
Response
Import succeeded with row-count breakdown.
Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991