ApiLinkedin messaging

Send Message with Delivery Acknowledgment

Send a message and acknowledge delivery of previous messages

POST/linkedin/messaging/send-with-ack

Send Message with Delivery Acknowledgment

Send a message and acknowledge delivery of previous messages

Authentication requiredLinkedIn Messaging

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/messaging/send-with-ack' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{
"recipientProfileId": "john-doe-123",
"message": "Hello! I would like to connect with you.",
"messageUrns": [
"urn:li:msg_message:(urn:li:fsd_profile:ACoAABpGQcMBI08myTal7qDJ5zb9lJiM24nFjJI,2-MTc2MzM3ODA2Mjg4MWI0MTM0My0xMDAmYTlkMzliMTAtMjA4Zi00ODc4LTgxZDgtZTI4ZDY0Zjg1YTE4XzEwMA==)"
]
}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
recipientProfileIdstringYes*Recipient's LinkedIn profile ID (required if recipientProfileUrn is not provided)
recipientProfileUrnstringYes*Recipient's LinkedIn profile URN (required if recipientProfileId is not provided)
messagestringYesMessage content
subjectstringNoMessage subject (optional)
messageTypestringNoMessage type: 'normal' or 'inmail' (default: 'normal')
messageUrnsarrayNoArray of message URNs to acknowledge delivery for

* Either recipientProfileId or recipientProfileUrn must be provided.

Example

{
  "recipientProfileId": "john-doe-123",
  "message": "Hello! I would like to connect with you.",
  "messageUrns": [
    "urn:li:msg_message:(urn:li:fsd_profile:ACoAABpGQcMBI08myTal7qDJ5zb9lJiM24nFjJI,2-MTc2MzM3ODA2Mjg4MWI0MTM0My0xMDAmYTlkMzliMTAtMjA4Zi00ODc4LTgxZDgtZTI4ZDY0Zjg1YTE4XzEwMA==)"
  ]
}

Responses

StatusDescription
200Successful response

200 Example

{
  "success": true,
  "message": "Message sent successfully",
  "recipientProfileUrn": "urn:li:fsd_profile:...",
  "acknowledgmentSent": true
}