API Reference/Endpoints
List all messages
GET/api/linkedin/gateway/messages
Lists messages across every chat on a connected account, newest activity first, with optional filters and cursor-based pagination — use List messages in a chat instead when you already know which chat you want.
Authentication
Send your personal API key as a bearer token. A missing, malformed or revoked key returns 401.
Query parameters
FieldTypeDescription
account_id *stringThe connected account to list messages from. Must belong to the calling key.
sender_idstringOnly return messages sent by this attendee.
beforestringOnly return messages sent before this ISO 8601 datetime.
afterstringOnly return messages sent after this ISO 8601 datetime.
limitintegerPage size, from 1 to 250.
cursorstringPass back the cursor from a previous response to fetch the next page.
Response fields
FieldTypeDescription
itemsarrayThe page of messages, most recent first.
cursorstring | nullPass as the cursor query parameter to fetch the next page. Null once there are no more.
Errors
·401 Unauthorized. The key is missing, malformed or has been rotated.·403 Forbidden. account_id doesn't belong to this key.