Import leads into a workspace, without a campaign.
Use this when the leads are not tied to a landing page yet; link them to campaigns later through an audience.
The response depends on how the import ran. Queued imports (the default, and always the case when any enrichment or campaign is requested) answer with a job_id to poll on /leads/get-status. Immediate imports (sync: true with no enrichment and no campaigns) answer with the result directly and carry a job_id of null.
Request body
Example request
{
"workspace_id": 55,
"leads": [
{
"values": {
"first_name": "John",
"email": "john@aws.com",
"company_name": "Amazon Web Services"
}
}
],
"from": "MyCompanyName",
"audience_id": 3,
"campaign_ids": [
1,
2
]
}Response
Example response
{
"job_id": "9f1c8b2e-..."
}Changes
Changed in 2 of the 3 revisions of this API.21
- ▲
added the new required request property
leads/items/valuesnew-required-request-property
- ▲
the
leads/items/request property type/format changed fromstring/toobject/request-property-type-changed
- ▲
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○