schedule_post_with_automation
Schedule a LinkedIn post for future publishing, or publish it right away with publish_now: true, with optional automation, @mentions, and media. The automation activates automatically when the post goes live. Attach media by URL, matching the dashboard/REST API: one OR multiple images (a carousel), OR a single PDF document, OR a single MP4 video. PDF/video cannot be combined with images or each other. Tag people/companies with the mentions array (works for personal and Company Page posts). Pass organization_id to publish as a Company Page you administer (call list_companies first). A Company Page can post at most 20 times in any 24 hours (LinkedIn throttles pages that post far more); a post that breaks that is refused with code page_post_limit and details.next_free_time, so schedule it at that time instead. If LinkedIn refuses two page posts in a row, that page's posts due in the next 6 hours are moved back; spread page posts over the day.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_content": "<post_content>"
},
"name": "schedule_post_with_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| act_as | No | APEX+ or admin act_as (optional): operate this tool AS one of your managed profiles — pass that profile's LeadShark account email (see list_profiles). Requires an active delegation from the profile owner plus an APEX+ plan or admin act_as enabled by LeadShark (which runs on the profile's own plan); anything else is refused with a reason, never silently redirected. The action runs under the managed profile's own budgets, approval queue, and action log. With a Team key, act_as is required on every call and must be one of the key's accounts (list_profiles); the call must also be within the permission groups the key has on that account, or it's refused with permission_missing. Hourly/daily limits are that profile's own. | |
| pdf_url | No | URL of a single PDF document to attach (max 50MB). Mutually exclusive with images and video_url — LinkedIn allows only one document per post. | |
| mentions | No | Optional. Tag people/companies in the post. Easiest: pass a slug — { "slug": "jane-doe" } (the /in/<slug> tail of a profile, or a full profile/company URL) — and we resolve the name + id for you. Also write the literal "@Name" in post_content for each tag. Works for personal and Company Page posts. Up to 20. | |
| timezone | No | IANA timezone name (e.g. America/New_York, Europe/Tallinn) used to interpret a naive scheduled_for. Omit it to use the user's LeadShark Settings timezone (UTC if they haven't set one). Ignored when scheduled_for already carries an offset or "Z". | |
| image_url | No | Deprecated — prefer image_urls. URL of a single image to attach (JPEG, PNG, GIF, WebP). Combined with image_urls if both are given. | |
| video_url | No | URL of a single MP4 video to attach (max 50MB). Mutually exclusive with images and pdf_url — LinkedIn allows only one video per post. | |
| automation | No | Optional automation to attach. Two ways: (1) from a saved template: pass only template + keyword + resource_link (everything else comes from the template; other fields are refused; the saved template itself is not changed). The link goes where the template has {{link}}, or replaces the template's single DM link; a template with 2+ links and no {{link}} is refused. (2) custom: keywords, dm_template, comment_reply, settings. | |
| image_urls | No | URLs of one or more images to attach to the post (a carousel), in order. Supports JPEG, PNG, GIF, WebP (max 5MB each; GIF up to 50MB and up to 250 frames, the LinkedIn limit), up to 20 images. Cannot be combined with pdf_url or video_url. | |
| crosspost_x | No | Optional. Also post the same text and images (or one GIF, or one MP4 video up to 50 MB) to the user's connected X account right after the LinkedIn post goes live. Fail-safe: never blocks or delays the LinkedIn post. If X isn't connected, or the post doesn't fit X (company page, PDF, a video over 50 MB or longer than X allows, too long even as a thread: on a free X account long posts go out as a thread of up to 8 posts, with X Premium as one post), the post still publishes on LinkedIn and the response's x_crosspost.warnings says why. Personal posts only. At most 10 posts to X per account per UTC calendar day (X-only posts and cross-posts together): on a full day the X copy is turned off and x_crosspost.warnings says so (the post still publishes on LinkedIn). Pro+ and higher plans only: on a lower plan the request is turned off and x_crosspost.warnings says why. | |
| on_conflict | No | Optional. "push": if another post is already in this 15-minute slot, move it and every later post back to make room, in this one call (no need to edit each post). By default each later post takes the next post's time; pass push_by_days / push_by_minutes to move them all by a fixed offset instead. The response lists every moved post under "pushed". | |
| publish_now | No | Publish to LinkedIn right away instead of scheduling (omit scheduled_for). Refused when another LinkedIn post of this account went out in the last 5 minutes or is scheduled within 5 minutes of now (move that post or wait). The reply says whether it published (with the post link), is still publishing, or why LinkedIn refused it. A comment-to-DM automation on the post starts within a few minutes. | |
| post_content | Yes | The LinkedIn post content (max 3000 chars) | |
| push_by_days | No | With on_conflict: "push": move the later posts by this many days instead of to the next post's slot. | |
| x_automation | No | Only with crosspost_x: an X lead-magnet automation on the X copy, separate from the LinkedIn automation. It starts once the X copy is out: someone replies on X with a keyword and gets a DM with your resource, a public reply, or both (same fields as schedule_x_post's automation). Pro+ runs 1 X automation at a time, Apex 10; X DM permission is needed to send DMs. Never blocks the LinkedIn post: if it can't be used, x_automation.warnings says why. | |
| x_engagement | No | Only with crosspost_x: the X copy's first comment and repost (Pro+ and Apex): a first comment on X right after it goes out, and one repost later, optionally removed 12 hours after. LinkedIn isn't affected. Never blocks the LinkedIn post: if it can't be used, x_engagement.warnings says why. | |
| first_comment | No | Optional. A comment posted in your voice immediately after the post publishes (max 3000 chars). Commonly used to put the lead-magnet link in the first comment instead of the post body. | |
| scheduled_for | No | Required unless publish_now is true. ISO 8601 datetime for publishing. If it includes an offset or "Z" (e.g. 2026-02-03T09:00:00Z or 2026-02-03T09:00:00-05:00) that exact instant is used. If you pass a naive local time (e.g. 2026-02-03T09:00:00) it is interpreted in the `timezone` you provide, or — if you omit it — in the user's LeadShark Settings timezone, so "09:00" means 9am their time. The response says which timezone was used (timezone, timezone_source). If the time has already passed, the error tells you the current time in that timezone. | |
| allow_duplicate | No | Optional. A post with the same text on the same account (and the same Company Page, if any) that is scheduled or published within 24 hours is refused with code duplicate_post, so a workflow that runs twice cannot post twice. Pass true only to post the same text again on purpose. | |
| organization_id | No | Optional. Numeric LinkedIn organization id of a Company Page you administer (from list_companies). When set, the post publishes as that Company Page. Automation is not supported for Company Page posts. | |
| push_by_minutes | No | With on_conflict: "push": move the later posts by this many minutes (min 15) instead of to the next post's slot. | |
| repost_after_hours | No | Optional auto-repost. Native LinkedIn reposts of this post from your personal profile, N hours after it actually goes live — any of 4, 8, 12 (e.g. [4, 8, 12] = three reposts). Company Page posts (organization_id) work too: the page's post is reposted from YOUR personal profile, and they can also use 0 = right after it goes live (within ~15 minutes; the early repost is what gives a page post reach). 0 is refused on personal posts. Each runs within ~15 minutes of its time and first removes the previous repost, so only the latest stays on the profile. Omit for none. | |
| first_comment_pinned | No | Optional, with first_comment. true pins the first comment to the top of the LinkedIn post right after it is posted (best effort: if pinning fails, the post and comment stay as they are). |