Skip to main content
POST
Message a Connection
Sends one message to a person, into the account’s 1:1 conversation with them or a new one. To answer a conversation whose id you have, use Reply. Paid: flat price per message (see Pricing). Requires the reply grant and an Idempotency-Key header. Shares the reply daily cap and spacing: about 45 seconds between sends on one account, ±50%.
A message LinkedIn accepted cannot be recalled. Every call must carry an Idempotency-Key. The SDKs generate one if you omit it and reuse it on retries, so a retry never sends twice.

Request

string
required
1–255 chars of [A-Za-z0-9_.:-]. A repeat with the same key returns 409 duplicate_request with the original request_id, even after a failure. It never sends again.
string
required
Connected LinkedIn account id.
string
required
An HTTPS linkedin.com/in/ profile URL, a slug, or LinkedIn’s external_id for the person.
string
required
1–4000 characters.

Before payment

Each of these returns a non-2xx and is never charged: Whether the person is a connection is checked at send time, not here.

Response

scheduled_for is the earliest send time when spacing delays the message; null means no delay.

Outcome

Poll GET /v1/requests/{request_id} (the SDK waits for you):
  • completed: { "action_request_id", "status": "sent", "conversation_id", "message_id", "external_message_id", "sent_at" }. Continue conversation_id with Reply. external_message_id is LinkedIn’s id for the message.
  • failed, with error_code and result.reason, plus upstream_reason when LinkedIn gave one.
    • Message and reply share one code list, marked terminal or retryable, on Errors.
    • recipient_not_connected: send an invitation first.
    • Refunded as account credit within a day if it failed before reaching LinkedIn (refunds run daily at 03:00 UTC).
  • processing with send_status: "ambiguous": a timeout, server error or throttled send left delivery unconfirmed. OneShot checks the conversation, sends again once if there is no sign of it after 10 minutes, and after 24 hours fails with send_unverified. Not refunded.
The SDKs wait up to 180 seconds, and spacing can push a send past that; the job keeps running. To skip the wait, pass wait: false and poll the request_id. The same goes for invite and withdraw.

Example