curl -X POST https://api.sendpilot.ai/v1/inbox/connect \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "senderId": "sender_abc123", "recipientLinkedinUrl": "https://www.linkedin.com/in/john-doe", "message": "Hi John, I came across your profile and would love to connect!" }'
const response = await fetch('https://api.sendpilot.ai/v1/inbox/connect', { method: 'POST', headers: { 'X-API-Key': process.env.SENDPILOT_API_KEY, 'Content-Type': 'application/json' }, body: JSON.stringify({ senderId: 'sender_abc123', recipientLinkedinUrl: 'https://www.linkedin.com/in/john-doe', message: 'Hi John, I came across your profile and would love to connect!' })});const result = await response.json();
import requestsresponse = requests.post( 'https://api.sendpilot.ai/v1/inbox/connect', headers={ 'X-API-Key': 'YOUR_API_KEY', 'Content-Type': 'application/json' }, json={ 'senderId': 'sender_abc123', 'recipientLinkedinUrl': 'https://www.linkedin.com/in/john-doe', 'message': 'Hi John, I came across your profile and would love to connect!' })result = response.json()
{ "statusCode": 400, "error": "Bad Request", "code": "SENDER_NOT_ACTIVE", "message": "LinkedIn sender 'sender_abc123' is not active. Current status: disconnected"}
{ "statusCode": 404, "error": "Not Found", "code": "SENDER_NOT_FOUND", "message": "LinkedIn sender with ID 'sender_abc123' not found in this workspace"}
{ "statusCode": 429, "error": "Too Many Requests", "code": "DAILY_LIMIT_EXCEEDED", "message": "LinkedIn sender 'sender_abc123' has reached its daily connection request limit. Resets at midnight UTC."}
Inbox
Send Connection Request
Send a LinkedIn connection request to a profile
POST
/
v1
/
inbox
/
connect
curl -X POST https://api.sendpilot.ai/v1/inbox/connect \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "senderId": "sender_abc123", "recipientLinkedinUrl": "https://www.linkedin.com/in/john-doe", "message": "Hi John, I came across your profile and would love to connect!" }'
const response = await fetch('https://api.sendpilot.ai/v1/inbox/connect', { method: 'POST', headers: { 'X-API-Key': process.env.SENDPILOT_API_KEY, 'Content-Type': 'application/json' }, body: JSON.stringify({ senderId: 'sender_abc123', recipientLinkedinUrl: 'https://www.linkedin.com/in/john-doe', message: 'Hi John, I came across your profile and would love to connect!' })});const result = await response.json();
import requestsresponse = requests.post( 'https://api.sendpilot.ai/v1/inbox/connect', headers={ 'X-API-Key': 'YOUR_API_KEY', 'Content-Type': 'application/json' }, json={ 'senderId': 'sender_abc123', 'recipientLinkedinUrl': 'https://www.linkedin.com/in/john-doe', 'message': 'Hi John, I came across your profile and would love to connect!' })result = response.json()
{ "statusCode": 400, "error": "Bad Request", "code": "SENDER_NOT_ACTIVE", "message": "LinkedIn sender 'sender_abc123' is not active. Current status: disconnected"}
{ "statusCode": 404, "error": "Not Found", "code": "SENDER_NOT_FOUND", "message": "LinkedIn sender with ID 'sender_abc123' not found in this workspace"}
{ "statusCode": 429, "error": "Too Many Requests", "code": "DAILY_LIMIT_EXCEEDED", "message": "LinkedIn sender 'sender_abc123' has reached its daily connection request limit. Resets at midnight UTC."}
Send a connection request to a LinkedIn profile. Optionally include a connection note (only works for premium LinkedIn accounts).
curl -X POST https://api.sendpilot.ai/v1/inbox/connect \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "senderId": "sender_abc123", "recipientLinkedinUrl": "https://www.linkedin.com/in/john-doe", "message": "Hi John, I came across your profile and would love to connect!" }'
const response = await fetch('https://api.sendpilot.ai/v1/inbox/connect', { method: 'POST', headers: { 'X-API-Key': process.env.SENDPILOT_API_KEY, 'Content-Type': 'application/json' }, body: JSON.stringify({ senderId: 'sender_abc123', recipientLinkedinUrl: 'https://www.linkedin.com/in/john-doe', message: 'Hi John, I came across your profile and would love to connect!' })});const result = await response.json();
import requestsresponse = requests.post( 'https://api.sendpilot.ai/v1/inbox/connect', headers={ 'X-API-Key': 'YOUR_API_KEY', 'Content-Type': 'application/json' }, json={ 'senderId': 'sender_abc123', 'recipientLinkedinUrl': 'https://www.linkedin.com/in/john-doe', 'message': 'Hi John, I came across your profile and would love to connect!' })result = response.json()
{ "statusCode": 400, "error": "Bad Request", "code": "SENDER_NOT_ACTIVE", "message": "LinkedIn sender 'sender_abc123' is not active. Current status: disconnected"}
{ "statusCode": 404, "error": "Not Found", "code": "SENDER_NOT_FOUND", "message": "LinkedIn sender with ID 'sender_abc123' not found in this workspace"}
{ "statusCode": 429, "error": "Too Many Requests", "code": "DAILY_LIMIT_EXCEEDED", "message": "LinkedIn sender 'sender_abc123' has reached its daily connection request limit. Resets at midnight UTC."}
When a connection request is sent, a connection.sent webhook event will be triggered. When the connection is accepted, a connection.accepted webhook event will be triggered.
Connection notes are only supported for LinkedIn Premium accounts. For free accounts, the connection request will be sent without a note.
LinkedIn has daily limits on connection requests. Check the sender’s remaining capacity using the List Senders endpoint.