curl -X POST https://api.linkedcamp.com/leads/add-to-campaign \
-H "token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"campaignId": "60f7a1b2c3d4e5f6a7b8c9d0",
"leads": [
{
"profileLink": "https://www.linkedin.com/in/johndoe",
"firstName": "John",
"lastName": "Doe"
},
{
"profileLink": "https://www.linkedin.com/in/janesmith",
"firstName": "Jane",
"lastName": "Smith"
}
]
}'
import requests
response = requests.post(
"https://api.linkedcamp.com/leads/add-to-campaign",
headers={"token": "YOUR_API_TOKEN"},
json={
"campaignId": "60f7a1b2c3d4e5f6a7b8c9d0",
"leads": [
{
"profileLink": "https://www.linkedin.com/in/johndoe",
"firstName": "John",
"lastName": "Doe",
},
{
"profileLink": "https://www.linkedin.com/in/janesmith",
"firstName": "Jane",
"lastName": "Smith",
},
],
},
)
print(response.json())
const response = await fetch(
"https://api.linkedcamp.com/leads/add-to-campaign",
{
method: "POST",
headers: {
"token": "YOUR_API_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
campaignId: "60f7a1b2c3d4e5f6a7b8c9d0",
leads: [
{
profileLink: "https://www.linkedin.com/in/johndoe",
firstName: "John",
lastName: "Doe",
},
{
profileLink: "https://www.linkedin.com/in/janesmith",
firstName: "Jane",
lastName: "Smith",
},
],
}),
}
);
const data = await response.json();
console.log(data);
{
"success": true,
"message": "Leads added successfully"
}
{
"success": false,
"message": "Failed to add leads into this campaign!"
}
Leads
Add Leads to Campaign
Add one or more leads to an existing campaign. Leads are automatically deduplicated within the same campaign.
POST
/
leads
/
add-to-campaign
curl -X POST https://api.linkedcamp.com/leads/add-to-campaign \
-H "token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"campaignId": "60f7a1b2c3d4e5f6a7b8c9d0",
"leads": [
{
"profileLink": "https://www.linkedin.com/in/johndoe",
"firstName": "John",
"lastName": "Doe"
},
{
"profileLink": "https://www.linkedin.com/in/janesmith",
"firstName": "Jane",
"lastName": "Smith"
}
]
}'
import requests
response = requests.post(
"https://api.linkedcamp.com/leads/add-to-campaign",
headers={"token": "YOUR_API_TOKEN"},
json={
"campaignId": "60f7a1b2c3d4e5f6a7b8c9d0",
"leads": [
{
"profileLink": "https://www.linkedin.com/in/johndoe",
"firstName": "John",
"lastName": "Doe",
},
{
"profileLink": "https://www.linkedin.com/in/janesmith",
"firstName": "Jane",
"lastName": "Smith",
},
],
},
)
print(response.json())
const response = await fetch(
"https://api.linkedcamp.com/leads/add-to-campaign",
{
method: "POST",
headers: {
"token": "YOUR_API_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
campaignId: "60f7a1b2c3d4e5f6a7b8c9d0",
leads: [
{
profileLink: "https://www.linkedin.com/in/johndoe",
firstName: "John",
lastName: "Doe",
},
{
profileLink: "https://www.linkedin.com/in/janesmith",
firstName: "Jane",
lastName: "Smith",
},
],
}),
}
);
const data = await response.json();
console.log(data);
{
"success": true,
"message": "Leads added successfully"
}
{
"success": false,
"message": "Failed to add leads into this campaign!"
}
This is the legacy v1 API. It keeps working, but new features ship in API v2. Use v2 for new integrations.
Headers
Body Parameters
The ID of the campaign to add leads to. The campaign must not be in
DELETED or FAILED status.Array of lead objects to add.
- Leads that already exist in the campaign (matched by
profileLink) will be skipped. - Sales Navigator and Recruiter URLs are automatically converted to standard LinkedIn URLs.
- You can pass additional custom fields on each lead object.
Response
curl -X POST https://api.linkedcamp.com/leads/add-to-campaign \
-H "token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"campaignId": "60f7a1b2c3d4e5f6a7b8c9d0",
"leads": [
{
"profileLink": "https://www.linkedin.com/in/johndoe",
"firstName": "John",
"lastName": "Doe"
},
{
"profileLink": "https://www.linkedin.com/in/janesmith",
"firstName": "Jane",
"lastName": "Smith"
}
]
}'
import requests
response = requests.post(
"https://api.linkedcamp.com/leads/add-to-campaign",
headers={"token": "YOUR_API_TOKEN"},
json={
"campaignId": "60f7a1b2c3d4e5f6a7b8c9d0",
"leads": [
{
"profileLink": "https://www.linkedin.com/in/johndoe",
"firstName": "John",
"lastName": "Doe",
},
{
"profileLink": "https://www.linkedin.com/in/janesmith",
"firstName": "Jane",
"lastName": "Smith",
},
],
},
)
print(response.json())
const response = await fetch(
"https://api.linkedcamp.com/leads/add-to-campaign",
{
method: "POST",
headers: {
"token": "YOUR_API_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
campaignId: "60f7a1b2c3d4e5f6a7b8c9d0",
leads: [
{
profileLink: "https://www.linkedin.com/in/johndoe",
firstName: "John",
lastName: "Doe",
},
{
profileLink: "https://www.linkedin.com/in/janesmith",
firstName: "Jane",
lastName: "Smith",
},
],
}),
}
);
const data = await response.json();
console.log(data);
{
"success": true,
"message": "Leads added successfully"
}
{
"success": false,
"message": "Failed to add leads into this campaign!"
}
