Facebook Pixel
ApiLinkedin messaging

Send Group Message

Send a message in the context of a LinkedIn group

POST/linkedin/messaging/send-group

Send Group Message

Send a message in the context of a LinkedIn group. Allows messaging group members you're not connected with.

Authentication requiredLinkedIn Messaging

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:ACoAAA...",
"groupId": "12345678",
"message": "Hi! I saw you in our shared group and wanted to connect."
}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
recipientProfileUrnstringYesRecipient's LinkedIn profile URN
groupIdstringYesLinkedIn group ID for context
messagestringYesMessage content to send

Example

{
  "recipientProfileUrn": "urn:li:fsd_profile:ACoAAA...",
  "groupId": "12345678",
  "message": "Hi! I saw you in our shared group and wanted to connect."
}

Responses

StatusDescription
200Successful response

200 Example

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

Usage Notes

  • Group Context: The message will reference your shared group membership
  • No Connection Required: You can message group members without being connected
  • Group Membership: Both you and the recipient must be members of the specified group
  • Group ID: Get group IDs from the search groups or group details endpoints