curl -X POST https://api.linkedcamp.com/webhooks \
-H "token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "New Connection Webhook",
"callbackUrl": "https://your-server.com/webhook/linkedcamp",
"event": "ACCEPTS_REQUEST"
}'
import requests
response = requests.post(
"https://api.linkedcamp.com/webhooks",
headers={"token": "YOUR_API_TOKEN"},
json={
"title": "New Connection Webhook",
"callbackUrl": "https://your-server.com/webhook/linkedcamp",
"event": "ACCEPTS_REQUEST",
},
)
print(response.json())
const response = await fetch("https://api.linkedcamp.com/webhooks", {
method: "POST",
headers: {
"token": "YOUR_API_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
title: "New Connection Webhook",
callbackUrl: "https://your-server.com/webhook/linkedcamp",
event: "ACCEPTS_REQUEST",
}),
});
const data = await response.json();
console.log(data);
{
"success": true,
"message": "Webhook added successfully!"
}
{
"success": false,
"message": "Invalid event!"
}
Webhooks
Create Webhook
Create a webhook to receive real-time notifications when specific campaign events occur.
POST
/
webhooks
curl -X POST https://api.linkedcamp.com/webhooks \
-H "token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "New Connection Webhook",
"callbackUrl": "https://your-server.com/webhook/linkedcamp",
"event": "ACCEPTS_REQUEST"
}'
import requests
response = requests.post(
"https://api.linkedcamp.com/webhooks",
headers={"token": "YOUR_API_TOKEN"},
json={
"title": "New Connection Webhook",
"callbackUrl": "https://your-server.com/webhook/linkedcamp",
"event": "ACCEPTS_REQUEST",
},
)
print(response.json())
const response = await fetch("https://api.linkedcamp.com/webhooks", {
method: "POST",
headers: {
"token": "YOUR_API_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
title: "New Connection Webhook",
callbackUrl: "https://your-server.com/webhook/linkedcamp",
event: "ACCEPTS_REQUEST",
}),
});
const data = await response.json();
console.log(data);
{
"success": true,
"message": "Webhook added successfully!"
}
{
"success": false,
"message": "Invalid event!"
}
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 event type that triggers the webhook.Available values:
| Event | Description |
|---|---|
CONNECT_INVITED | A connection request was sent |
ACCEPTS_REQUEST | A connection request was accepted |
REPLY_DETECTED | A reply was received from a prospect |
EMAIL_SENT | An email was sent |
OPENED | An email was opened |
BOUNCED | An email bounced |
CLICKED | A link in an email was clicked |
UNSUBSCRIBED | A prospect unsubscribed |
Response
curl -X POST https://api.linkedcamp.com/webhooks \
-H "token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "New Connection Webhook",
"callbackUrl": "https://your-server.com/webhook/linkedcamp",
"event": "ACCEPTS_REQUEST"
}'
import requests
response = requests.post(
"https://api.linkedcamp.com/webhooks",
headers={"token": "YOUR_API_TOKEN"},
json={
"title": "New Connection Webhook",
"callbackUrl": "https://your-server.com/webhook/linkedcamp",
"event": "ACCEPTS_REQUEST",
},
)
print(response.json())
const response = await fetch("https://api.linkedcamp.com/webhooks", {
method: "POST",
headers: {
"token": "YOUR_API_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
title: "New Connection Webhook",
callbackUrl: "https://your-server.com/webhook/linkedcamp",
event: "ACCEPTS_REQUEST",
}),
});
const data = await response.json();
console.log(data);
{
"success": true,
"message": "Webhook added successfully!"
}
{
"success": false,
"message": "Invalid event!"
}
