PubNio publishing API for LinkedIn

PubNio's LinkedIn Publishing API lets developers and AI agents publish text posts, single-image posts, and native PDF document carousels (up to 100 MB) with preflight validation, weekly queues, and idempotent delivery receipts. Connect unlimited LinkedIn accounts at $0 per account.

PubNio is a third-party service. Availability depends on platform approval and account permissions.

Placements: Text, Image, PDF Document (up to 100 MB)LinkedIn MCP guideLinkedIn error codesView as Markdown

Capabilities & requirements.

Defined by PubNio's publishing contract for LinkedIn.

LinkedIn Publishing API capabilities and requirements
CapabilityDetails
Supported placementsText feed post, single image, PDF document (up to 100 MB)
Account prerequisiteLinkedIn member connected via OAuth
SchedulingExplicit ISO 8601 timestamp or per-account weekly queue
Post analyticsPlanned
Pricing$0/account; 100 free confirmed publishes/mo, then $5/1k (or Pro $29 / Platform $149)

OAuth & account connection

  • LinkedIn members authorize publishing through official LinkedIn OAuth in the PubNio workspace.
  • PubNio handles asset upload registration for images and PDF documents automatically.

Preflight validation before delivery

  • Validates caption length, PDF MIME type, and 100 MB document size ceiling.
  • Prevents unsupported multi-media mixes before calling LinkedIn's Posts API.
  • Checks OAuth token expiry so agents can prompt a reconnect before scheduling.

Publish to LinkedIn via SDK or CLI.

Draft once, validate before sending, and confirm live delivery with an idempotency key.

const deck = await workspace.media.importUrl({
  url: "https://cdn.example.com/q4-architecture-slides.pdf",
});
const draft = await workspace.posts.create({
  isDraft: true,
  text: "How we built reliable social publishing with PubNio.",
  targets: [
    { accountId: linkedinAccountId, placement: "feed", media: [{ mediaId: deck.mediaId }] },
  ],
});
const job = await workspace.posts.publish(draft.postId, {
  idempotencyKey: "li-q4-slides",
});
publish-linkedin.ts · @pubnio/sdkLinkedIn error codes

Frequently asked questions.

Does PubNio support LinkedIn PDF document carousels?

Yes. PubNio supports uploading and publishing LinkedIn PDF documents up to 100 MB alongside text and image posts.

Can I cross-post one draft to LinkedIn and X?

Yes. Add both accounts as targets on one draft with per-target text overrides if you want a longer LinkedIn post and a concise X thread.

Publish to LinkedIn with 100 free deliveries.

Connect unlimited LinkedIn accounts for $0 and confirm live delivery over REST API, SDK, CLI, or hosted MCP.