API · LinkedIn
POST /linkedin/accounts/{account}/messages
Sends a LinkedIn message from your connected account, in a conversation or to people you are connected with.
| |
|---|
| Request | POST /v1/linkedin/accounts/{account}/messages |
| Operation id | linkedin.message.send |
| Cost | 5 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Sends a LinkedIn message from your connected account, in a conversation or to people you are connected with.
| Name | Type | Required | Description |
|---|
account | string | yes | The id of the LinkedIn account you connected (from GET /v1/linkedin/accounts). Example: csn_01JDX9EXAMPLE0000000000. |
| Field | Type | Required | Description |
|---|
chat | string | no | An existing conversation: chat_id or thread_id from linkedin_chats_list. |
profiles | string[] | no | Start a conversation with these members (1 to 20). |
text | string | yes | The message. |
| Status | Meaning | Schema |
|---|
200 | The message was sent. | LinkedInMessageSent |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | LinkedIn has no such public page, or it was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | LinkedIn is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
account | string | The connected account id (csn_…). |
sent | true | |
chat_id | string | null | |
message_urn | string | null | |
delivered_at | string | null | ISO 8601 time, or null. |
Errors use one shape everywhere; see Errors for every code and what to do.