post_to_linkedin_page
Publish to a LinkedIn company Page destructive
Description
Use this when the user wants to post to a LinkedIn company Page. Publishing costs no credits. This is a DIFFERENT thing from post_to_linkedin, which publishes to the person’s own profile: pick the one the user actually asked for and never substitute. organizationId comes from list_linkedin_pages; omit it only when the account administers exactly one Page. This PUBLISHES immediately and PUBLICLY — ALWAYS show the user the exact text and get an explicit yes BEFORE calling. LinkedIn does NOT allow the image, video, captions or thumbnail of a published post to be swapped afterwards, so get all of that right first (the copy can still be edited with manage_linkedin_post). Full rules: get_instructions({topic:'post_to_linkedin_page'}).
Parameters
| Parameter | Type | Description |
|---|---|---|
brand | string | WHICH PROFILE this post belongs to, for THIS CALL ONLY (beats the connection’s pin): an id or exact name from list_brands. A name that matches no profile, or two, is REFUSED and nothing is posted. |
hook | string | the post’s ANGLE, recorded at publish: a list_hooks id (e.g. "direct_callout") or your own wording reused EXACTLY across a campaign. post_performance ranks hooks on it (a winner needs 5 posts sharing one); omitted, this post never votes. |
subject | string | what the post is about (product, feature, offer or theme): post_performance’s second axis, so reuse the exact wording. |
recipe | string | the post's FORMAT id, e.g. "slideshow" or "imessage_chat" — post_performance groups by it, so reuse one id per format |
ideaId | string | short id of the content-plan idea this post came from |
organizationId | string | numeric Page id from list_linkedin_pages |
textrequired | string | the post text |
linkUrl | string | publish a LINK POST — LinkedIn renders a real preview card for this URL instead of leaving a bare link in the text. Mutually exclusive with imageUrl / videoUrl / imageUrls: LinkedIn’s content field is a union, so combining them is refused by name rather than one being dropped. |
linkTitle | string | the headline ON the preview card. LINKEDIN NEVER SCRAPES THE PAGE — their Posts API disables URL scraping for API partners outright — so if you do not pass this the card renders UNLABELLED. Fetch the page’s own title and pass it. |
linkDescription | string | the sub-line on the preview card. Same rule as linkTitle: absent means blank, because LinkedIn will not fetch it. |
linkThumbnailUrl | string | a Hermoso-hosted image used as the card’s picture (uploaded to LinkedIn for you). Without it the card has no image. |
documentUrl | string | a DOCUMENT post — a Hermoso-hosted PDF / PPTX / DOCX (upload_file first) that readers swipe through page by page in the feed; LinkedIn takes up to 100MB and 300 pages. One kind of media per post: not with an image, video, slides or linkUrl. |
documentTitle | string | the title shown on the document (defaults to the file name) |
poll | object | a POLL as the post (question ≤140, 2-4 options ≤30); no media |
poll.questionrequired | string | |
poll.optionsrequired | string[] | |
poll.duration | "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | |
reshareOf | string | REPOST this post (link or urn); text optional, no media. Link cards come only from linkUrl |
mentions | object[] | TAG COMPANIES: write "@Name" in the text where each tag goes and list each company here — its vanity name (the part after linkedin.com/company/), its company page URL, or {organizationId, name}. Hermoso resolves it on LinkedIn and LinkedIn renders a real clickable mention; a company with no "@" spot in the text is refused rather than appended. |
imageUrl | string | a Hermoso-hosted image URL — a render (list_library), or ANY image of the user’s own passed through upload_file first. An arbitrary external host is refused. |
videoUrl | string | a Hermoso-hosted video URL — a render, or the user’s own footage via upload_file. LinkedIn processes it before publishing, which takes a minute. |
imageUrls | string[] | CAROUSEL — an ORDERED list of image (and, where the channel allows, video) URLs published as ONE post the viewer swipes through, not several posts: a multi-slide creative (a listicle, a “1/6 · SWIPE” deck) needs every slide, in order. Limits: Instagram 2–20 (images, videos or a mix), Threads 2–20 (mix allowed), Facebook 2+ (no documented maximum; Hermoso caps the upload at 30 and says so), LinkedIn company Pages 2–20 (images only), Pinterest 2–5 (images only), TikTok up to 35. One url is an ordinary single post. Anything a channel cannot do is REFUSED with the reason, never downgraded to one slide. |
idempotencyKey | string | SAFE RETRIES — any stable string: the SAME publish again within 24h returns the ORIGINAL post id instead of posting again (an identical publish is also recognised for 10 minutes). On a timeout or an ambiguous error, CALL AGAIN WITH THE SAME KEY: it reports the original post or publishes it once, never twice. |
allowDuplicate | boolean | post it even though an identical post was just made or attempted: only when the user wants the same thing posted twice, or you have LOOKED at the account and confirmed a timed-out attempt did not land. |
altText | string | string[] | accessibility alt text (max 4086 characters, ~120 recommended). A STRING describes every image; an ARRAY describes each slide of a multi-image post separately, in slide order — LinkedIn stores altText per image, and their own sample request carries a different one on each. Also works on a personal-profile post (post_to_linkedin). |
title | string | video title |
captionsSrt | string | CLOSED CAPTIONS for a videoUrl post: the SubRip (.srt) CONTENT itself, cue numbers and `00:00:00,000 --> 00:00:02,000` timings included, NOT a URL or the plain script (a file with no timings is refused: LinkedIn would accept it and never show it). Most of LinkedIn is watched with the sound off. ONE caption file per video, ENGLISH ONLY, attachable only WHILE the video uploads (never to a published post), processed asynchronously, so the reply confirms the upload, never visibility. Requires videoUrl; refused by name on an image, carousel or link post. |
videoThumbnailUrl | string | the COVER IMAGE for a videoUrl post — a Hermoso-hosted image (a render, or any picture of the user’s via upload_file). Without it LinkedIn adds a system-generated thumbnail, which on an ad is usually whatever the first frame happens to be. Like captions this can only be set WHILE the video is uploaded, never afterwards. Requires videoUrl. This is NOT linkThumbnailUrl, which is the picture on a link-preview card. |
coverAtMs | number | THE VIDEO COVER of a videoUrl post, as ONE frame: milliseconds from the start (7000 = the frame at 7s). That frame is uploaded as LinkedIn’s video thumbnail (only possible while the video uploads). videoThumbnailUrl wins. |
visibility | "PUBLIC" | "CONNECTIONS" | default PUBLIC |
firstComment | string | FIRST COMMENT — posted on the new post AS THE PAGE right after it publishes. Needs the LinkedIn comments authorization on this brand (provider linkedin_community). Up to 2,000 characters, refused rather than cut. If the comment fails the post stays live and firstComment in the result says why. |
targetAudience | object | LINKEDIN COMPANY PAGE POST ONLY — show the post only to Page followers matching these facets (URNs or bare numeric ids; search_linkedin_ads_targeting finds them). LinkedIn requires the matching audience to be over 300 followers and refuses a smaller one. Personal-profile posts cannot be targeted. |
targetAudience.geoLocations | string[] | urn:li:geo or numeric id |
targetAudience.industries | string[] | urn:li:industry or numeric id |
targetAudience.seniorities | string[] | urn:li:seniority or numeric id |
targetAudience.jobFunctions | string[] | urn:li:function or numeric id |
targetAudience.staffCountRanges | "SIZE_1" | "SIZE_2_TO_10" | "SIZE_11_TO_50" | "SIZE_51_TO_200" | "SIZE_201_TO_500" | "SIZE_501_TO_1000" | "SIZE_1001_TO_5000" | "SIZE_5001_TO_10000" | "SIZE_10001_OR_MORE"[] | company size bands |
targetAudience.degrees | string[] | urn:li:degree or numeric id |
targetAudience.fieldsOfStudy | string[] | urn:li:fieldOfStudy or numeric id |
targetAudience.organizations | string[] | urn:li:organization (school or company) or numeric id |
platformCover | boolean | VIDEO COVER. Omit it (the default) and Hermoso sets the video’s best frame — the same frame as its Library thumbnail — as the cover (LinkedIn’s video thumbnail upload). true = send no cover and let the platform pick (usually the first frame). A cover you pass yourself always wins. |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/post_to_linkedin_page.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"post_to_linkedin_page","arguments":{"text":"<string>"}}}
CLI
hermoso call post_to_linkedin_page --json '{"text":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
post_to_linkedinPublish to LinkedInlist_linkedin_pagesList the LinkedIn company Pages this account administersmanage_linkedin_postEdit or delete a LinkedIn postget_instructionsRead Hermoso's full instructions