Skip to main content
POST
/
campaigns
/
{campaignId}
/
leads
/
import
Import Leads from CRM
curl --request POST \
  --url https://api.lemlist.com/api/campaigns/{campaignId}/leads/import \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "crm": "hubspot",
  "userId": "usr_h47tiJr87Zn7XtQHi",
  "filterId": "16",
  "deduplicate": true
}'
{
  "ok": true
}
This endpoint is available to beta testers only but will become public soon.
Import leads from your connected CRM into a specific campaign.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

campaignId
string
required

The unique identifier of the campaign

Body

application/json
crm
string
required

CRM name

userId
string
required

User ID with CRM connection

filterId
string
required

Filter ID from the CRM

filterType
string

Type of filter (for Salesforce)

deduplicate
boolean

Whether to deduplicate leads

Response

Success

The response is of type object.