GroundsocialDocs

API · LinkedIn

POST /linkedin/accounts/{account}/messages

Sends a LinkedIn message from your connected account, in a conversation or to people you are connected with.

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

Sends a LinkedIn message from your connected account, in a conversation or to people you are connected with.

Path parameters

NameTypeRequiredDescription
accountstringyesThe id of the LinkedIn account you connected (from GET /v1/linkedin/accounts). Example: csn_01JDX9EXAMPLE0000000000.

Request body

FieldTypeRequiredDescription
chatstringnoAn existing conversation: chat_id or thread_id from linkedin_chats_list.
profilesstring[]noStart a conversation with these members (1 to 20).
textstringyesThe message.

Responses

StatusMeaningSchema
200The message was sent.LinkedInMessageSent
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

LinkedInMessageSent fields

FieldTypeDescription
accountstringThe connected account id (csn_…).
senttrue
chat_idstring | null
message_urnstring | null
delivered_atstring | nullISO 8601 time, or null.

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