API Reference/Endpoints
List messages in a chat
GET/api/linkedin/gateway/chats/{chat_id}/messages
Returns the messages in a chat, newest-related metadata included — sender, timestamp, read/edit/delete state, reactions, and any attachments.
Authentication
Send your personal API key as a bearer token. A missing, malformed or revoked key returns 401.
Path parameters
FieldTypeDescription
chat_id *stringThe chat to list messages from.
Query parameters
FieldTypeDescription
account_id *stringThe connected account this chat belongs to.
limitintegerItems per page, 1–250. Defaults to a moderate page size.
cursorstringPass the previous response's cursor to page forward.
beforestringISO 8601 datetime — only messages sent before this.
afterstringISO 8601 datetime — only messages sent after this.
sender_idstringOnly messages sent by this attendee.
Response fields
FieldTypeDescription
items[].message_idstringUnique id of the message.
items[].sender_idstringThe sending attendee's id.
items[].textstring | nullThe message body, or null for attachment-only / event messages.
items[].timestampstringISO 8601 send time.
items[].attachmentsarrayImages, files, links and other rich content attached to the message.
cursorstring | nullPass to the next call's cursor param to keep paging.
Errors
·401 Unauthorized. The key is missing, malformed or has been rotated.·403 Forbidden. The account_id doesn't belong to this key.·404 Not Found. No chat with that id belongs to this account.