JavaScript SDK: swarmhit.inbox.chats.markRead(chatId)
Clears the unread count for the chat (and every sibling thread of the same person), locally and on LinkedIn.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/inbox/chats/string/read"{ "data": { "ok": true }}List inbox chats GET
**JavaScript SDK:** [`swarmhit.inbox.chats.list(params?)`](/smart-api/sdk/methods#inbox.chats) Ordered by most recent activity. With `replied=true`, ordered by the lead's most recent reply instead. Each thread carries its lead's `label` in the campaign.
Send a message in a chat POST
**JavaScript SDK:** [`swarmhit.inbox.chats.messages.send(chatId, params)`](/smart-api/sdk/methods#inbox.chats.messages) Sends as the chat's sender account, or from the mailbox on an email chat (a reply in the same thread, to the address that last wrote). Email chats take `text` only for now: `attachments` or a `voiceMessage` on one is a `400`.