Facebook Pixel
APILinkedIn Messaging

Send a message (messaging wrapper)

Send a LinkedIn message using the messaging endpoint. Wrapper around the core messaging functionality with a cleaner interface. Supports regular messages and InMail.

POST/messaging/send

Send a message (messaging wrapper)

Send a LinkedIn message using the messaging endpoint. Wrapper around the core messaging functionality with a cleaner interface. Supports regular messages and InMail.

Authentication requiredMessaging

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/messaging/send' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"message":"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.
recipientProfileIdstringNoRecipient LinkedIn profile public ID
recipientProfileUrnstringNoRecipient LinkedIn profile URN
messagestringYesMessage content to send
subjectstringNoSubject line (required for InMail)
messageTypestringNoMessage type

Example

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

Responses

StatusDescription
200Message sent successfully