Skip to content

TikTok Content Posting rules

Handle TikTok privacy levels, commercial content disclosures, and unaudited app limits cleanly in PubNio.

TikTok’s Content Posting API enforces creator-level visibility rules and commercial disclosure checks on every submission. PubNio queries each creator’s live allowed options and checks your draft during preflight (POST /api/v1/posts/{postId}/validate).

Allowed privacy levels

TikTok defines four privacy enum values:

Value Visibility Notes
PUBLIC_TO_EVERYONE Public feed Requires audited TikTok Direct Post app and creator permission.
MUTUAL_FOLLOW_FRIENDS Friends only Available when enabled on the creator account.
FOLLOWER_OF_CREATOR Followers only Available for private or follower-scoped accounts.
SELF_ONLY Private (creator only) Required for unaudited apps during testing or review.

If you pass a privacy setting not permitted for that account, POST /api/v1/posts/{postId}/validate returns tiktok_privacy_unsupported before calling TikTok.

Commercial content disclosures

When a video promotes your own brand or a paid third-party partnership, TikTok requires explicit commercial disclosure flags. Leaving disclosure settings incomplete when promotional fields are active triggers tiktok_disclosure_required during preflight.

const video = await workspace.media.importUrl(
  "https://cdn.example.com/demo.mp4",
);
const ready = await workspace.media.wait(video.mediaId);

const accepted = await workspace.posts.create({
  text: "Automated release walkthrough #dev",
  targets: [
    {
      accountId: tiktokAccountId,
      placement: "feed",
      media: [{ mediaId: ready.mediaId }],
      settings: { format: "video", privacy: "PUBLIC_TO_EVERYONE" },
    },
  ],
  idempotencyKey: "tiktok-release-01",
});

// Advanced: save a draft, run preflight, then publish the saved revision.
const draft = await workspace.posts.create({
  isDraft: true,
  text: "Automated release walkthrough #dev",
  targets: [
    {
      accountId: tiktokAccountId,
      placement: "feed",
      media: [{ mediaId: ready.mediaId }],
      settings: { format: "video", privacy: "PUBLIC_TO_EVERYONE" },
    },
  ],
});
const check = await workspace.posts.validate(draft.postId);
if (!check.canPublish) throw new Error(JSON.stringify(check.errors));
await workspace.posts.publish(draft.postId, {
  expectedRevision: draft.revision,
  idempotencyKey: "tiktok-release-02",
});

Type to search…

↑↓ navigate↵ selectEsc close