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
| Field | Type | Description |
|---|---|---|
queryRequired | string | Natural-language request to post on LinkedIn |
verbatim | boolean | True: `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.
| Field | Type |
|---|---|
content | string |
post_url | string |
answer | string |
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())// Node.js 18 or newer, in an ES module.
const response = await fetch("https://toolsprimitives.uk/v1/tools/linkedin.post/invoke", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HEELO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
"query": "Post to LinkedIn: 'Excited to announce our new product launch!'"
},
}),
signal: AbortSignal.timeout(120_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());