ApiLinkedin messaging
Send Message with Delivery Acknowledgment
Send a message and acknowledge delivery of previous messages
POST
/linkedin/messaging/send-with-ackSend 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
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID (uses default if not provided) |
recipientProfileId | string | Yes* | Recipient's LinkedIn profile ID (required if recipientProfileUrn is not provided) |
recipientProfileUrn | string | Yes* | Recipient's LinkedIn profile URN (required if recipientProfileId is not provided) |
message | string | Yes | Message content |
subject | string | No | Message subject (optional) |
messageType | string | No | Message type: 'normal' or 'inmail' (default: 'normal') |
messageUrns | array | No | Array 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
| Status | Description |
|---|---|
| 200 | Successful response |
200 Example
{
"success": true,
"message": "Message sent successfully",
"recipientProfileUrn": "urn:li:fsd_profile:...",
"acknowledgmentSent": true
}