// ACTION

Live

Send LinkedIn Messages and InMail via API

// OVERVIEW

What it does

Send a direct message to a LinkedIn connection or open profile, the first message after an accepted invitation, or a follow-up.

Set InMail to send a paid InMail that reaches people outside your network, which requires a subject and a Premium or Sales Navigator allowance.

Available in n8n, MCP, and REST.

// PARAMETERS

Inputs

NameTypeRequiredDescription
profileIdstringRequiredConnected LinkedIn profile sending the message.
recipientIdstringRequiredThe internal ID of the person, from a People search result, Get Profile, or Get Connections.
textstringRequiredThe message body, up to 10000 characters.
inmailbooleanOptionalSend a paid InMail instead of a regular message.
subjectstringOptionalInMail subject, up to 200 characters. Required when inmail is true.

// OUTPUT SHAPE

Example JSON output

{
  "conversation_id": "conv_01H...",
  "message_id": "msg_01H...",
  "new_conversation": true
}

// INVOCATION

How to call

Resource: MessageOperation: Send

// CONSTRAINTS

Limits & status

Subject to safe daily message limits you control. InMail requires a Premium or Sales Navigator allowance.

// USED IN

Playbooks using this Action

Not yet used in a published playbook.

// GET STARTED

Start building with Periodix Actions

Create an account, get an API key, and call this Action from your stack.

Create your account