Facebook Pixel
APILinkedIn Messaging

Send message with group context

Send a LinkedIn message to someone using group membership context. Allows messaging non-connections who are members of the same LinkedIn group without using InMail credits.

POST/messaging/send-group

Send message with group context

Send a LinkedIn message to someone using group membership context. Allows messaging non-connections who are members of the same LinkedIn group without using InMail credits.

Authentication requiredMessaging

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/messaging/send-group' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"recipientProfileUrn":"urn:li:fsd_profile:ACoAABcdefgh","groupId":"12345678","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.
recipientProfileUrnstringYesRecipient LinkedIn profile URN
groupIdstringYesLinkedIn group ID that both sender and recipient are members of
messagestringYesMessage content to send

Example

{
  "recipientProfileUrn": "urn:li:fsd_profile:ACoAABcdefgh",
  "groupId": "12345678",
  "message": "Hello! I would like to connect with you."
}

Responses

StatusDescription
200Group context message sent successfully