# PubNio publishing API for TikTok

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

## Summary

PubNio wraps TikTok's Content Posting API for video and photo feed publishing with built-in preflight checks for TikTok privacy levels, commercial disclosure flags, and upload status polling, plus normalized TikTok post analytics. Connect unlimited TikTok 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 | Video feed and photo feed |
| Preflight rules | Validates creator privacy options, commercial disclosure flags, and upload readiness |
| Post analytics | Live lifetime totals & daily observations |
| Scheduling | Explicit ISO 8601 timestamp or per-account weekly queue |
| Pricing | $0/account; 100 free confirmed publishes/mo, then $5/1k (or Pro $29 / Platform $149) |

## OAuth & prerequisites

- TikTok accounts connect via TikTok Login Kit / Content Posting OAuth in the browser.
- Note: TikTok restricts unaudited apps to private (SELF_ONLY) visibility until Direct Post audit approval; PubNio surfaces exact creator privacy options during preflight.

## Preflight validation

- Checks tiktok_privacy_unsupported against the creator's live allowed privacy levels.
- Checks tiktok_disclosure_required when branded/commercial content settings are enabled.
- Verifies tiktok_upload_required and mention caps (tiktok_too_many_mentions) before submission.

## TypeScript SDK example

```ts
const video = await workspace.media.importUrl({
  url: "https://cdn.example.com/product-demo.mp4",
});
const draft = await workspace.posts.create({
  isDraft: true,
  text: "Built an AI social publishing workflow in 15 lines.",
  targets: [
    {
      accountId: tiktokAccountId,
      placement: "video",
      media: [{ mediaId: video.mediaId }],
      settings: { privacy: "PUBLIC_TO_EVERYONE" },
    },
  ],
});
const job = await workspace.posts.publish(draft.postId, {
  idempotencyKey: "tt-demo-01",
});
```

## CLI example

```sh
pnio posts create --draft --workspace $WORKSPACE_ID \
  --account $TIKTOK_ACCOUNT_ID --placement video \
  --media $VIDEO_ID --text "AI publishing workflow." --publish
```

## FAQs

### Why do TikTok posts sometimes require specific privacy or disclosure flags?

TikTok's Content Posting API enforces creator-level privacy options and commercial content disclosures. PubNio queries the account's allowed options and reports typed errors (tiktok_privacy_unsupported, tiktok_disclosure_required) at preflight so your code or agent fixes them before publishing.

### Does PubNio include TikTok post analytics?

Yes. Normalized lifetime totals and daily observations are live for TikTok posts published through PubNio.
