Facebook Pixel
APILinkedIn Messaging

Send message (auto-detects Sales Navigator)

Send a LinkedIn message. Auto-detects Sales Navigator accounts and routes through Sales Nav API. Supports file attachments.

POST/conversations/send
Authentication requiredConversations

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/conversations/send' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"accountId":"acc_12345","recipientProfileId":"john-doe-123","conversationUrn":"urn:li:example:123456","message":"Hello! I would like to connect with you.","subject":"Quick question about your work","attachments":[]}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID
recipientProfileIdstringConditionalRecipient public profile ID Either recipientProfileId or recipientProfileUrn must be provided.
recipientProfileUrnstringConditionalRecipient profile URN Either recipientProfileUrn or recipientProfileId must be provided.
conversationUrnstringNoExisting conversation URN (skips recipient lookup)
messagestringYesMessage text
subjectstringNoMessage subject (optional)
attachmentsarrayNoFile attachments from upload-attachment endpoint

Example

{
  "message": "Hello! I would like to connect with you."
}

Responses

StatusDescription
200Message sent
400Bad request or send failed
401Unauthorized
404Account not found
500Server error

200 Response Parameters

NameTypeDescription
successboolean
messagestring
recipientProfileUrnstring
sentMessageobject
threadIdstringSales Navigator thread ID (only for Sales Nav accounts)

200 Example

{
  "success": true,
  "message": "Hello! I would like to connect with you.",
  "recipientProfileUrn": "urn:li:fsd_profile:ACoAABcdefgh",
  "sentMessage": {},
  "threadId": "12345"
}

400 Response Parameters

NameTypeDescription
errorstring

400 Example

{
  "error": "example_value"
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

{
  "error": "example_value"
}

404 Response Parameters

NameTypeDescription
errorstring

404 Example

{
  "error": "example_value"
}

500 Response Parameters

NameTypeDescription
errorstring

500 Example

{
  "error": "example_value"
}