LinkedIn

Send a LinkedIn message

Sends a LinkedIn message. Pass identity to message a person in your LinkedIn conversation with them; only first-degree connections can receive one, so check isConnected on the profile first and send an InMail otherwise. Pass conversationId to send into a conversation in the account's LinkedIn inbox, including one another account started from Sales Navigator or Recruiter: answering it needs no seat, and it stays in that conversation. Counts against the linkedin_message limits. The messagingChannel field is deprecated: send from Sales Navigator with POST /api/v1/linkedin/sales-navigator/messages. Attach files with POST /api/v1/files first, then pass the returned url.

POST

/api/v1/linkedin/messages

Request bodyrequired

connectedAccountIdrequired

string · uuid

Connected account to act as

conversationIdoptional

string

Send into this conversation: a conversationId from the conversations listing. Pass it or identity, not both.

identityoptional

string

Send to this person, in your LinkedIn conversation with them: user id (ACoAAA…) or public identifier. Pass it or conversationId, not both.

textrequired

string

attachmentsoptional

object[]

Files from POST /api/v1/files. Pass the returned url, not a signed URL. Needle reads the private object and sends the bytes to LinkedIn.

messagingChanneloptional

"linkedin" | "linkedin_sales_navigator"

Deprecated: send from Sales Navigator with POST /api/v1/linkedin/sales-navigator/messages instead. "linkedin_sales_navigator" sends from Sales Navigator, in the lead's chat there; the lead must be a connection, and the account needs Sales Navigator. It counts against the linkedin_sales_navigator_message limits. Works with identity only.

Response

201Send result.

result

object

messageId

string | null

conversationId

string | null

sentAt

string · date-time

remainingUsage

object

Remaining allowance for this action on the connected account across hourly, daily, and weekly windows, and its minimum wait. Each action type has its own limits.

hour

integer | null

Remaining hourly allowance for this action. Null when this action has no hourly cap.

day

integer

Remaining daily allowance for this action.

week

integer | null

Remaining weekly allowance for this action. Null when this action has no weekly cap.

minWaitSeconds

integer | null

The least time in seconds between two of this action on the account. Null when it has no minimum wait.

requestId

string · uuid

Id of this request, for support and troubleshooting

Errors

  • 400: Bad request
  • 401: Unauthorized: missing or invalid API key
  • 403: Forbidden
  • 404: Not found
  • 422: Invalid request payload

Search docs

Search documentation, API reference, and MCP tools

We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy