Skip to main content
POST
/
linkedin
/
send-message
Send LinkedIn message
curl --request POST \
  --url https://api.harvest-api.com/linkedin/send-message \
  --header 'X-API-Key: <api-key>'
{
  "element": {
    "originToken": "<string>",
    "body": {
      "attributes": [
        "<unknown>"
      ],
      "text": "<string>"
    },
    "backendUrn": "<string>",
    "conversationUrn": "<string>",
    "deliveredAt": 123,
    "renderContentUnions": [
      "<unknown>"
    ],
    "renderContentFallbackText": "<string>",
    "entityUrn": "<string>",
    "backendConversationUrn": "<string>",
    "senderUrn": "<string>"
  },
  "status": "<string>",
  "error": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.harvest-api.com/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint works only with custom accounts. Please check the Using Custom Accounts guide for more details on how to set up and use custom accounts.

Authorizations

X-API-Key
string
header
required

Query Parameters

recipientProfile
string<url>

LinkedIn profile URL to which the message will be sent. For example, 'https://www.linkedin.com/in/john-doe-123456789/'

message
string

Message text to send.

LinkedIn cookies. Please check https://docs.harvest-api.com/guides/custom-accounts for more details on how to get and use the cookies.

proxy
string

Proxy to use for this request. More details - https://docs.harvest-api.com/guides/custom-accounts

userAgent
string

User-Agent to use for this request. More details - https://docs.harvest-api.com/guides/custom-accounts

Response

Message sent successfully

element
object
status
string
error
string