Hosted tool
Post to LinkedIn
Waiting on a key
Publish content to an explicitly authorized connected account.
social.linkedin.postversion 1
Price
0.01
credits per call
Availability
Waiting on a key
Waiting on its upstream credential.
Access
Waiting on a key
Category Social Media
Input
{
"additionalProperties": false,
"properties": {
"confirm": {
"const": true,
"type": "boolean"
},
"connection_id": {
"maxLength": 80,
"minLength": 1,
"type": "string"
},
"text": {
"maxLength": 3000,
"minLength": 1,
"type": "string"
}
},
"required": [
"connection_id",
"text",
"confirm"
],
"type": "object"
}Result
object<{post_id:string,url:string}>Default fields: post_id url
Limits
| Synchronous deadline | 15 s |
|---|---|
| Maximum result | 65,536 bytes |
| Result pages | 1 |
| Maximum upstream read | 1,048,576 bytes |
Example call
Provisional: the invoke contract ships with the execution lane
curl https://haidercode.ai/v1/tools/social.linkedin.post/invoke \
-H "Authorization: Bearer <HK_KEY>" \
-H "Content-Type: application/json" \
-H 'Idempotency-Key: linkedin-post-1' \
-d '{"arguments":{"connection_id":"…","text":"…","confirm":false},"max_credits":"0.05"}'Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.