Skip to main content
POST
Send a Reply
Sends one message into an existing conversation from the human’s account, then returns processing with a request to poll. Paid: flat price per message (see Pricing). Requires the reply grant and an Idempotency-Key header.
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.

Request

string
required
1–255 chars of [A-Za-z0-9_.:-]. A retry with the same key and body replays the accepted response. The same key with a different body returns 422 idempotency_key_reuse. A repeat can also return 409 duplicate_request with the original request_id, even after a failure; nothing is sent again.
string
required
Connected LinkedIn account id.
string
required
From Conversations. For a connection with no conversation yet, use Message a connection.
string
required
1–4000 characters.

Before payment

Each of these returns a non-2xx and is never charged:

Response

scheduled_for is the earliest send time when the reply was spaced out behind another send on the same account: random intervals of about 45 seconds, plus or minus 50%. null means no delay. The send can still start later than scheduled_for.

Outcome

Poll GET /v1/requests/{request_id} (the SDK waits for you):
  • completed: { "action_request_id", "status": "sent", "external_message_id", "message_id", "sent_at" }. external_message_id is an opaque external reference; message_id identifies the stored OneShot message, visible in Messages with source: "send".
  • failed, with an error_code and result.reason (see Errors). Refunded as credit within a day if it failed before sending.
  • 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 fails with send_unverified after 24 hours. Never refunded automatically.

Checks before sending

Just before sending, OneShot checks again that the account is connected, still grants reply, that grant_version has not changed, and that the daily cap has room. A reply failing these checks is cancelled with the matching code; nothing reaches LinkedIn.

Example