Skip to main content
POST
/
api
/
linkedin
/
management
/
chat
/
messages
/linkedin/management/chat/messages
curl --request POST \
  --url https://api.anysite.io/api/linkedin/management/chat/messages \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user": {
    "type": "<string>",
    "value": "<string>"
  },
  "timeout": 300,
  "company": {
    "type": "<string>",
    "value": "<string>"
  }
}
'
[
  {
    "urn": {
      "type": "<string>",
      "value": "<string>"
    },
    "author": {
      "internal_id": {
        "type": "<string>",
        "value": "<string>"
      },
      "urn": {
        "type": "<string>",
        "value": "<string>"
      },
      "name": "<string>",
      "url": "<string>",
      "@type": "LinkedinManagementChatUser",
      "image": "<string>",
      "headline": "<string>"
    },
    "text": "<string>",
    "sent_at": 123,
    "@type": "LinkedinManagementChatMessages",
    "attachments": [
      {
        "name": "<string>",
        "media_type": "<string>",
        "url": "<string>",
        "@type": "LinkedinManagementChatMessageAttachment"
      }
    ]
  }
]

Authorizations

access-token
string
header
required

Headers

access-token
string
required

Body

application/json
account_id
string<uuid>
required

Can be obtained on the accounts page: https://app.horizondatawave.ai/accounts

user
LinkedinURN[Literal[<LinkedinURNPrefix.fsd_profile: 'fsd_profile'>]] · object
required
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
company
LinkedinURN[Literal[<LinkedinURNPrefix.company: 'company'>]] · object

Company URN where the account is admin

Response

Successful Response

urn
LinkedinURN[Literal[<LinkedinURNPrefix.message: 'message'>]] · object
required
author
LinkedinManagementChatUser · object
required
text
string
required
sent_at
integer
required
@type
string
default:LinkedinManagementChatMessages
attachments
LinkedinManagementChatMessageAttachment · object[] | null