APILinkedIn Messaging

Send Message with Typing Indicator

Send a message with a typing indicator sent first (for existing conversations)

POST/linkedin/messaging/send-with-typing

Send 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

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
recipientProfileIdstringYes*Recipient's LinkedIn profile ID (required if recipientProfileUrn is not provided)
recipientProfileUrnstringYes*Recipient's LinkedIn profile URN (required if recipientProfileId is not provided)
messagestringYesMessage content
subjectstringNoMessage subject (optional)
messageTypestringNoMessage type: 'normal' or 'inmail' (default: 'normal')
conversationUrnstringNoConversation 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

StatusDescription
200Successful response

200 Example

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