API · LinkedIn
GET /linkedin/accounts/{account}/chats
Your connected LinkedIn account’s conversations, most recent first, paginated.
| |
|---|
| Request | GET /v1/linkedin/accounts/{account}/chats |
| Operation id | linkedin.chats.list |
| Cost | 5 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Your connected LinkedIn account’s conversations, most recent first, paginated.
| Name | Type | Required | Description |
|---|
account | string | yes | The id of the LinkedIn account you connected (from GET /v1/linkedin/accounts). Example: csn_01JDX9EXAMPLE0000000000. |
| Name | Type | Required | Description |
|---|
unread | "true" | "false" | no | true: only conversations with unread messages. One of true, false. |
after | string | no | Cursor: the previous page’s after, unchanged. |
| Status | Meaning | Schema |
|---|
200 | One page of conversations. | LinkedInChatsPage |
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_…). |
data | LinkedInChat[] | |
after | string | null | Cursor for the next page (pass it as after); null on the last. |
Errors use one shape everywhere; see Errors for every code and what to do.