Zernio
APIFor you
Zernio
APIFor you
Platforms

LinkedIn

Overview

Publish

PostsPlatform Fields & TargetingMedia Requirements

Engage

AnalyticsInbox

Reference

Limits & Errors
Dashboard
OverviewPlatformsAPI ReferenceResources
LinkedIn

Limits & Errors

What LinkedIn's API does not expose and the common errors when publishing.


What you cannot do

LinkedIn's API does not expose:

  • Long-form articles (linkedin.com/article/new/)
  • Events
  • InMail and DMs
  • Newsletters
  • Following hashtags or tagging connections
  • Mixed media in one post (images with a video, or images with a document)
  • The one-click "Repost" feed treatment (reposts are always authored by your account)

Common errors

ErrorCauseFix
"Content is a duplicate of urn:li:share:XXXX" (422)Identical or very similar content was already postedChange the text meaningfully. LinkedIn's duplicate detection is strict, and a minor rephrase may not be enough.
"Publishing failed during preflight checks"Rate limiting or validation caught an issue before publishingSpace posts further apart. Check Account health.
"Publishing failed due to max retries reached"All 3 retry attempts failedA temporary issue. Retry, or check LinkedIn's status page.
Token expiredThe OAuth token expired or was revokedReconnect the account. Subscribe to the account.disconnected webhook to catch this early.
"Cannot mix media types"The post has images with a video or a documentUse one media type per post.
Video processing failedCodec, duration or aspect ratio is out of specH.264, within the duration limit (10 minutes personal, 30 minutes organization) and an aspect ratio between 1:2.4 and 2.4:1.
Link preview shows the wrong imageMissing or wrong Open Graph tags on the URLFix og:image on the site and refresh with the LinkedIn Post Inspector.

A publishNow: true post that LinkedIn rejects returns 207 with post.status: "failed" and the message in platforms[].errorMessage:

{
  "message": "Post created but publishing failed",
  "error": "All platforms failed",
  "post": {
    "_id": "65f1c0a9e2b5af0012ab34cd",
    "status": "failed",
    "platforms": [
      {
        "platform": "linkedin",
        "status": "failed",
        "errorMessage": "Content is a duplicate of urn:li:share:7200000000000000000"
      }
    ]
  }
}

207 is a 2xx status, so fetch(...).ok is true; branch on the status code and on post.status. Error handling covers the envelope.

Was this page helpful?

Inbox

Comments and reactions on LinkedIn posts in the inbox.

TikTok

Publish videos and photo carousels to TikTok with the Zernio API, with creator privacy levels, duet and stitch controls, custom covers, AI disclosure and Creator Inbox drafts.

On this page

What you cannot doCommon errors