APILinkedIn Messaging
Send Message with Typing Indicator
Send a message with a typing indicator sent first (for existing conversations)
POST
/linkedin/messaging/send-with-typingSend Message with Typing Indicator
Send a message with a typing indicator sent first (for existing conversations)
Authentication requiredLinkedIn Messaging
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/messaging/send-with-typing' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{ "recipientProfileId": "john-doe-123", "message": "Hello! I would like to connect with you.", "conversationUrn": "urn:li:msg_conversation:(...)" }'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID (uses default if not provided) |
recipientProfileId | string | Yes* | Recipient's LinkedIn profile ID (required if recipientProfileUrn is not provided) |
recipientProfileUrn | string | Yes* | Recipient's LinkedIn profile URN (required if recipientProfileId is not provided) |
message | string | Yes | Message content |
subject | string | No | Message subject (optional) |
messageType | string | No | Message type: 'normal' or 'inmail' (default: 'normal') |
conversationUrn | string | No | Conversation URN (required if sending to existing conversation to trigger typing indicator) |
* Either recipientProfileId or recipientProfileUrn must be provided.
Example
{
"recipientProfileId": "john-doe-123",
"message": "Hello! I would like to connect with you.",
"conversationUrn": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAABpGQcMBI08myTal7qDJ5zb9lJiM24nFjJI,2-YTlkMzliMTAtMjA4Zi00ODc4LTgxZDgtZTI4ZDY0Zjg1YTE4XzEwMA==)"
}Responses
| Status | Description |
|---|---|
| 200 | Successful response |
200 Example
{
"success": true,
"message": "Message sent successfully",
"recipientProfileUrn": "urn:li:fsd_profile:...",
"typingIndicatorSent": true
}