# PubNio publishing API for LinkedIn

Human page: https://pubnio.com/platforms/linkedin
MCP guide: https://pubnio.com/linkedin-mcp.md

## Summary

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.

## Capabilities & limits

| Capability | Details |
| --- | --- |
| Supported placements | Text feed post, single image, PDF document (up to 100 MB) |
| Account prerequisite | LinkedIn member connected via OAuth |
| Scheduling | Explicit ISO 8601 timestamp or per-account weekly queue |
| Post analytics | Planned |
| Pricing | $0/account; 100 free confirmed publishes/mo, then $5/1k (or Pro $29 / Platform $149) |

## OAuth & prerequisites

- 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

- 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.

## TypeScript SDK example

```ts
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",
});
```

## CLI example

```sh
pnio posts create --draft --workspace $WORKSPACE_ID \
  --account $LINKEDIN_ACCOUNT_ID --placement feed \
  --media $PDF_MEDIA_ID --text "Q4 architecture slides." --publish
```

## FAQs

### 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.
