Cross-post from LinkedIn to X

To cross-post from LinkedIn to X with PubNio, add a caption of 280 or fewer weighted characters to the X target. 8 of 11 publishing rules differ, and one request with a target for each network publishes both (provider rules read 2026-12-05).

Both networks Live · platform rules read 2026-12-05View as Markdown

What changes from LinkedIn to X

RuleLinkedInXWhat to change
Caption limit3,000280the 444-character draft is 164 over 280: set targets[1].text
Caption countingcode pointsX weightsa URL costs 23, an emoji 2
Media per post1 video, 1 PDF, or up to 20 imagesup to 4 images, 1 GIF, or 1 video20 images on LinkedIn, 4 here: more fail with media_count
Photo file PubNio acceptsJPEG, PNG; 10 MBJPEG, PNG, WebP; 5 MBa file over 5 MB fails with media_too_large
Linksin the textin the text, counted as 23each URL uses 23 of the 280
Repliesthread comments, firstCommentthread of up to 24, firstCommenttargets[1].settings takes its own thread
Network feenone$0.015 a post, or $0.20 with a linkpaid from prepaid credit; short of it, create answers 402 insufficient_credit
Accountaccount or Pageaccounttargets[1].accountId is a connected X account

What each network states

One request for both

linkedin-and-x.http
POST /api/v1/posts?workspaceId=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b
Authorization: Bearer pn_live_***
Idempotency-Key: crosspost-linkedin-to-x-1
Content-Type: application/json

{
  "text": "We moved our billing system to a new ledger last quarter. Three lessons. First, write down every invariant before you touch a table: we found eleven rules that lived only in people's heads. Second, run old and new side by side and diff every result for a full billing cycle; the diffs found our two worst bugs. Third, make the cutover boring: one customer segment per day, with a rollback ready for each. Zero billing incidents during the move.",
  "media": [
    {
      "mediaId": "8b2f3c4d-5e6f-4071-9283-94ab5c6d7e8f"
    }
  ],
  "publishNow": true,
  "targets": [
    {
      "accountId": "2d8f4c36-9e5f-4a7a-9c32-4b6d8e0f2a33",
      "provider": "linkedin",
      "placement": "feed"
    },
    {
      "accountId": "50bc7f69-c182-4dad-8f65-7e9ab13c5d66",
      "provider": "x",
      "placement": "feed",
      "text": "We moved billing to a new ledger last quarter. Three lessons: write down every invariant first, diff old and new for a full cycle, and make the cutover boring."
    }
  ]
}
  • targets[0] publishes to LinkedIn as feed and targets[1] to X as feed; both use the uploaded photo in media.
  • targets[1].text replaces the 444-character caption for X with a 159-character one, under its 280.
  • The X target carries X's fee of $0.015 a post, or $0.20 with a link, paid from prepaid credit; when the balance cannot pay it, create answers 402 insufficient_credit and neither network publishes.
  • The 202 lists each target on its own: if X fails, the LinkedIn post stands, and posts.retry retries X alone.

Sent unchanged to X

A bare targets[1] gets 422 invalid publication, and neither network publishes:

IssuePathMessage
caption_too_longtextThis caption contains 444 weighted characters. The limit is 280.

Limits

  • PubNio does not shorten the caption or fill in settings for X: until both targets pass, create publishes neither.
  • Create checks the photo's type, size, and count, not its pixel size or aspect ratio; LinkedIn and X each crop or reject on their own.

Sources