send_message
Send a LinkedIn DM via Voyager createMessage: use conversation_linkedin_id for an existing thread or recipient_linkedin_id for a new DM. Use for the classic inbox: conversation_linkedin_id to reply in a thread, recipient_linkedin_id for a new one (1st-degree connections, or with in_mail_premium an Open Profile member). Counts against the daily messages quota; a Sales Navigator InMail with a subject is salesnav_send_inmail, a Sales Navigator thread salesnav_send_message; for more than ten messages use create_job. On a refusal, error carries LinkedIn's reason.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Plain text to send or post. | |
| page_id | No | Reply as this company page (page_id from list_managed_pages; needs send_messages). A page can only answer: conversation_linkedin_id from list_conversations with the same page_id is required. | |
| account_id | Yes | Reach id of the LinkedIn account to act on, from list_accounts. | |
| idempotency_key | No | Optional. A key you choose (a UUID is fine) that names this exact call. If you retry with the same key and the same arguments, the first call's result is returned and nothing is done twice on LinkedIn. Reusing a key with different arguments is refused. Keys expire after 24 hours. | |
| in_mail_premium | No | Send from the classic inbox to someone outside the network, without a subject: works for an Open Profile member (free) and uses LinkedIn Premium credits, not Sales Navigator ones; requires recipient_linkedin_id. For a Sales Navigator InMail use salesnav_send_inmail. | |
| recipient_linkedin_id | No | Recipient profile id (fsd_profile id) to start a new conversation; from list_conversations or scrape_profile. Omit when replying in an existing conversation. | |
| conversation_linkedin_id | No | Conversation (thread) id, as returned by list_conversations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | LinkedIn's reason when it refused the message (absent on success, or when LinkedIn gave none). | |
| success | No | ||
| status_code | No | HTTP status from LinkedIn (e.g. 201 on success). |