Reply in a LinkedIn conversation

POST
/linkedin-inbox/chats/{chatId}/messages

Sends a message in an existing conversation, from the LinkedIn account that holds it. The message leaves at once and cannot be taken back.

Send JSON { "text": "..." }. To add files, send multipart/form-data instead, with text and up to 10 attachments of 20 MB each.

A sponsored message or an InMail that LinkedIn closed accepts no reply (read_only: 1 on the conversation): the request fails with CHAT_READ_ONLY and nothing is sent.

Errors. 400 INBOX_MESSAGE_EMPTY (no text and no file), 400 without code when LinkedIn refuses the message, 404 CONVERSATION_NOT_FOUND, 409 ACCOUNT_DISCONNECTED, 422 CHAT_READ_ONLY, 429 RATE_LIMITED.

Authorization

apiKey
Authorization<token>

Your 48 character API key, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api.

In: header

Path Parameters

chatId*string

id of a conversation, from GET /linkedin-inbox/chats or GET /linkedin-inbox/search.

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/linkedin-inbox/chats/Hk3pX8vQTqOAb1sZ0mN4yw/messages" \  -H "Authorization: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "text": "Great, I just sent you an invite for Thursday at 10. Talk soon!"  }'
{  "success": true,  "message": {    "object": "MessageSent",    "message_id": "vB8nQ3kTRm1Xw6Lc0ZpY4s"  }}