Skip to content

Docs / All tools / Base tools

linkedin.post

Publish a post from the connected LinkedIn account.

40 credits. Per post. 0 when cancelled.

Example prompt

Send this to your AI app when Heelo is connected:

Post to LinkedIn: 'Excited to announce our new product launch!'

Input fields

FieldTypeDescription
queryRequiredstringNatural-language request to post on LinkedIn
verbatimbooleanTrue: `query` is the whole post text, posted exactly as given (used by loop1.run and channel.expand)

Output fields

The fields in data when status is success.

FieldType
contentstring
post_urlstring
answerstring

Code

The call with the input fields that the tool needs. Set HEELO_API_KEY to your API key.

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/linkedin.post/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "Post to LinkedIn: 'Excited to announce our new product launch!'",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())