LINKEDIN MESSAGING API

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.

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.