ApiLinkedin messaging
Send Group Message
Send a message in the context of a LinkedIn group
POST
/linkedin/messaging/send-groupSend 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
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID (uses default if not provided) |
recipientProfileUrn | string | Yes | Recipient's LinkedIn profile URN |
groupId | string | Yes | LinkedIn group ID for context |
message | string | Yes | Message 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
| Status | Description |
|---|---|
| 200 | Successful 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
