Facebook Pixel
APILinkedIn Actions

Send a connection request

Send a connection request to a LinkedIn member to become 1st-degree connections. Optionally include a personalized message (300 character limit). Connection requests with custom messages have higher acceptance rates. Provide either profileId or profileUrn.

POST/connect

Send a connection request

Send a connection request to a LinkedIn member to become 1st-degree connections. Optionally include a personalized message (300 character limit). Connection requests with custom messages have higher acceptance rates. Provide either profileId or profileUrn.

Authentication requiredActions

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/connect' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"accountId":"acc_12345","profileId":"john-doe-123","profileUrn":"urn:li:fsd_profile:ACoAABcdefgh","customMessage":"Hello! I would like to connect with you."}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
profileIdstringNoTarget LinkedIn profile public ID (e.g., "john-doe-123")
profileUrnstringNoTarget LinkedIn profile URN (e.g., "urn:li:fsd_profile:ABC123")
customMessagestringNoPersonalized connection message (max 300 characters). Leave empty for default request.

Example

{
  "accountId": "acc_12345",
  "profileId": "john-doe-123",
  "profileUrn": "urn:li:fsd_profile:ACoAABcdefgh",
  "customMessage": "Hello! I would like to connect with you."
}

Responses

StatusDescription
200Connection request sent successfully