Send LinkedIn messages programmatically
A REST API for sending LinkedIn DMs, InMail and group messages. Read conversation threads, sync the inbox, upload attachments and integrate Sales Navigator messaging — all from a single API. Built for outreach tools, unified inboxes and AI agents.
LinkedIn Messaging API endpoints
Eight endpoints for sending direct messages, managing conversations, streaming typing indicators and syncing the LinkedIn inbox.
/messageSend Message
Send a 1:1 LinkedIn direct message on behalf of a connected account with optional file attachments.
View API docs →/messaging/send-with-typingSend Message With Typing
Show a natural typing indicator before the message lands — mirrors real user behaviour for safer automation.
View API docs →/messaging/typing-indicatorTrigger Typing Indicator
Send a standalone typing event — useful for human-in-the-loop workflows and AI agent conversations.
View API docs →/messaging/recent-messagesGet Recent Messages
List the latest inbox messages across all conversations for a connected account.
View API docs →/messaging/conversation-detailsGet Conversation Details
Full conversation thread with all messages, participants, read state and attachment metadata.
View API docs →/messaging/mark-seenMark Conversation Seen
Mark a conversation as read — mirrors the LinkedIn UI behaviour for inbox management.
View API docs →/messaging/mark-all-readMark All Messages Read
Clear the unread badge across every conversation for the connected account.
View API docs →/messaging/send-groupSend Group Message
Post a message to a LinkedIn group the connected account belongs to.
View API docs →Send a LinkedIn message in seconds
One POST request — authenticated with your API key and a connected account ID. Supports text, attachments and typing indicators.
curl -X POST https://api.connectsafely.ai/v1/messages \
-H "Authorization: Bearer $CONNECTSAFELY_API_KEY" \
-H "X-Account-Id: $ACCOUNT_ID" \
-H "Content-Type: application/json" \
-d '{
"recipientId": "urn:li:person:ACoAA...",
"text": "Hey Sarah — loved your post on RAG evals."
}'Who builds on the LinkedIn Messaging API
The Messaging API is the backbone of outreach tools, unified inboxes and LinkedIn-aware AI agents.
Outreach & SDR automation
Power multi-touch LinkedIn outreach sequences with typing indicators for a natural, human-like cadence that avoids detection.
Unified inbox products
Pull conversations from LinkedIn and Sales Navigator, mark them read, and push replies — everything a multi-channel inbox needs.
AI agents on LinkedIn
Give an autonomous AI agent a safe interface to read, reply and manage LinkedIn conversations with full inbox sync.
LinkedIn Messaging API — frequently asked questions
- Can I send LinkedIn messages programmatically with this API?
- Yes. The Messaging API lets you send 1:1 direct messages, group messages and InMail programmatically on behalf of connected LinkedIn accounts. Each message can include text, file attachments and optional typing indicators to mimic natural behaviour.
- Does the API support Sales Navigator messaging?
- Yes. The Messaging API auto-detects Sales Navigator accounts and routes messages through the Sales Nav API. Sales Navigator threads are automatically merged with standard LinkedIn inbox conversations for a unified view.
- How do you handle LinkedIn messaging rate limits?
- Every message is routed through compliant account infrastructure with automatic rate-limit detection and request throttling. The API enforces safe daily sending limits per account and distributes requests to stay within LinkedIn's thresholds — preventing account restrictions.
- Can I build a LinkedIn inbox or CRM integration?
- Yes. Use the conversation list and message retrieval endpoints to sync the full LinkedIn inbox into your CRM or unified inbox product. The API supports pagination, unread filtering, real-time message polling and attachment downloads.
Start sending LinkedIn messages via API
Get an API key in under two minutes. Pay only for what you send. No LinkedIn Partner Program approval required.