Send group message with typing indicator
Send a LinkedIn message using group context after showing a typing indicator. Combines group messaging capability with natural typing simulation. Rate limit: 150 messages per day per account.
/messaging/send-group-with-typingCode Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/messaging/send-group-with-typing' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"recipientProfileUrn":"urn:li:fsd_profile:ACoAAFpqSoMB8vTqRbg4mN_wbabO8w0gjgFu-6o","groupId":"12345678","message":"Hello fellow group member!"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
recipientProfileUrn | string | Yes | Recipient LinkedIn profile URN |
groupId | string | Yes | LinkedIn group ID |
message | string | Yes | Message content to send |
conversationUrn | string | No | Conversation URN for existing conversations |
Example
{
"recipientProfileUrn": "urn:li:fsd_profile:ACoAAFpqSoMB8vTqRbg4mN_wbabO8w0gjgFu-6o",
"groupId": "12345678",
"message": "Hello fellow group member!"
}Responses
| Status | Description |
|---|---|
| 200 | Group message sent with typing indicator successfully |
| 400 | Bad request - Missing required parameter |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Not authorized to message this user via group |
| 429 | Rate limit exceeded |
| 500 | Server error |
Rate Limit Headers
All responses include rate limit information in the headers:
| Header | Description |
|---|---|
X-RateLimit-Action | The action type being rate limited |
X-RateLimit-Limit | Maximum actions allowed per period |
X-RateLimit-Used | Actions used in current period |
X-RateLimit-Remaining | Actions remaining |
X-RateLimit-Reset | ISO 8601 timestamp when limit resets |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
message | string | |
recipientProfileUrn | string | |
groupId | string | |
typingIndicatorSent | boolean |
200 Example
{
"success": true,
"message": "Group context message sent successfully",
"recipientProfileUrn": "urn:li:fsd_profile:ACoAAFpqSoMB8vTqRbg4mN_wbabO8w0gjgFu-6o",
"groupId": "12345678",
"typingIndicatorSent": true
}400 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
error | object |
400 Example
{
"success": false,
"error": "recipientProfileUrn, groupId, and message are required"
}401 Example
{
"error": "Unauthorized - Invalid credentials"
}403 Example
{
"success": false,
"message": "Error sending group context message: Request failed with status code 403",
"recipientProfileUrn": "urn:li:fsd_profile:...",
"groupId": "12345678",
"typingIndicatorSent": false
}429 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string | |
success | boolean |
429 Example
{
"error": "Rate limit exceeded for MESSAGE: 150/150 used",
"success": false
}500 Example
{
"error": "Failed to get LinkedIn authentication credentials",
"success": false
}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. Rate limit: 150 messages per day per account.
Send group message with delivery acknowledgment
Send a LinkedIn message using group context while acknowledging delivery of previous messages. Useful for group-based conversations where you want to track message delivery. Rate limit: 150 messages per day per account.
