APILinkedIn Messaging
Send Sales Navigator message
Send a message via Sales Navigator API. Can reply to existing thread or start new conversation with recipients. Optionally copy to CRM. Note: POST /conversations/send auto-detects Sales Nav accounts and routes accordingly.
POST
/sales-nav/sendAuthentication requiredSales Navigator
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/sales-nav/send' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"body":"example_value"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID |
threadId | string | No | Existing thread ID to reply to |
recipients | array | No | Profile URNs for new conversation (required if no threadId) |
body | string | Yes | Message text |
copyToCrm | boolean | No | Copy message to CRM |
Example
{
"body": "example_value"
}Responses
| Status | Description |
|---|---|
| 200 | Message sent |
| 400 | Send failed |
| 401 | Unauthorized |
| 404 | Account not found |
| 500 | Server error |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
message | string | |
threadId | string | |
messageId | string | |
accountId | string |
200 Example
{
"success": true,
"message": "Hello! I would like to connect with you.",
"threadId": "12345",
"messageId": "Hello! I would like to connect with you.",
"accountId": "acc_12345"
}400 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
400 Example
{
"error": "example_value"
}401 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
401 Example
{
"error": "example_value"
}404 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
404 Example
{
"error": "example_value"
}500 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
500 Example
{
"error": "example_value"
}