Leads
Import leads into a workspace, without a campaign.
Changed onUse 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.
post/api/external/v1/leads/import-to-workspace
Request
- Base URLhttps://backend.genpage.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
- breaking
added the new required request property
// - breaking
the
/request property type changed fromstringtoobject
- breaking
- info
endpoint added
- info