GroundsocialDocs

API · LinkedIn

GET /linkedin/accounts/{account}/chats/{chat}/messages

The messages in one conversation of your connected LinkedIn account, paginated.

RequestGET /v1/linkedin/accounts/{account}/chats/{chat}/messages
Operation idlinkedin.chat.messages
Cost5 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

The messages in one conversation of your connected LinkedIn account, paginated.

Path parameters

NameTypeRequiredDescription
accountstringyesThe id of the LinkedIn account you connected (from GET /v1/linkedin/accounts). Example: csn_01JDX9EXAMPLE0000000000.
chatstringyeschat_id or thread_id from linkedin_chats_list, URL-encoded. Example: 2-T25lVG9PbmVTeW50aGV0aWM=.

Query parameters

NameTypeRequiredDescription
afterstringnoCursor: the previous page’s after, unchanged.

Responses

StatusMeaningSchema
200One page of messages.LinkedInMessagesPage
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404LinkedIn has no such public page, or it was removed.Error
429Too many requests. Wait for Retry-After seconds.Error
503LinkedIn is temporarily unavailable. Retryable; nothing was charged.Error

LinkedInMessagesPage fields

FieldTypeDescription
accountstringThe connected account id (csn_…).
chat_idstring
dataLinkedInMessage[]
afterstring | nullCursor for older messages; null when there are none.

Errors use one shape everywhere; see Errors for every code and what to do.