Communitygithub.com

publora/tiktok-post

Use when the user wants to upload or schedule a TikTok video through Publora, with privacy, comment, duet, stitch and commercial-disclosure settings. Video runs 3 seconds to 10 minutes at 23+ FPS; carousels take up to 35 images. Unaudited apps can publish private videos only. Not for Reels (use instagram-post).

tiktok-post 是什么?

tiktok-post is a Claude Code agent skill that use when the user wants to upload or schedule a TikTok video through Publora, with privacy, comment, duet, stitch and commercial-disclosure settings. Video runs 3 seconds to 10 minutes at 23+ FPS; carousels take up to 35 images. Unaudited apps can publish private videos only. Not for Reels (use instagram-post).

兼容平台Claude CodeCodex CLICursor
npx skills add https://github.com/publora/skills/tree/main/skills/tiktok-post

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

TikTok Post

Upload and schedule videos to TikTok using the Publora MCP server. Supports privacy controls, interaction settings (comments, duet, stitch), and commercial content disclosure.

Prerequisites

Plans: Works on the free Starter plan. Current limits and pricing: publora.com/pricing.

Getting Started

  1. Create account at publora.com/register (free)
  2. Connect TikTok via OAuth in Publora Dashboard
  3. Get API key at app.publora.com/dashboard/api
  4. Connect your agent to the MCP server at https://mcp.publora.com, authenticating with Authorization: Bearer sk_YOUR_API_KEY. In Claude Code:
claude mcp add publora --transport http https://mcp.publora.com \
  --header "Authorization: Bearer sk_YOUR_API_KEY"

Claude Desktop, Cursor, Codex, OpenClaw and the claude.ai connector each need a different config file or flow: see client setup for the exact path and snippet.

REST API Fallback

If the MCP server is unavailable or returns errors, use the REST API directly:

Base URL: https://api.publora.com/api/v1

Authentication: Use x-publora-key header (NOT Authorization: Bearer):

# Get your connected platforms
curl -X GET "https://api.publora.com/api/v1/platform-connections" \
  -H "x-publora-key: sk_your_api_key"

# Create a post
curl -X POST "https://api.publora.com/api/v1/create-post" \
  -H "x-publora-key: sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "platforms": ["tiktok-99887766"],
    "content": "Video caption here #hashtag",
    "scheduledTime": "2026-03-25T10:00:00Z",
    "platformSettings": {
      "tiktok": {
        "viewerSetting": "PUBLIC_TO_EVERYONE",
        "allowComments": true
      }
    }
  }'

Platform ID Format: tiktok-{id} where {id} is from /platform-connections response.

Example IDs: tiktok-99887766, tiktok-123456789

📖 Full API documentation: docs.publora.com

Platform Limits (API vs Native App)

Critical API limits that differ from native TikTok app:

Video Requirements

SpecificationAPI LimitNative App
Max duration10 minutes60 minutes
Min duration3 seconds3 seconds
Max file size4 GB4 GB
Min frame rate23 FPS23 FPS
FormatsMP4, MOV, WebMMP4, MOV, WebM

Caption Limits

ElementAPI LimitNative App
Caption length2,200 characters4,000 characters
HashtagsIncluded in caption countIncluded in caption count

Rate Limits

LimitValue
Posts per day15-20
Videos per minuteMax 2

Available Tools

create_post

Create a new TikTok post.

Parameters:

  • platforms: Array with your TikTok connection ID (e.g., ["tiktok-99887766"])
  • content: Video caption (up to 2,200 characters)
  • scheduledTime: ISO 8601 UTC datetime. Optional: omit it and the post is created as a draft. Send a future time to schedule. A time five or more minutes in the past is rejected with SCHEDULED_TIME_IN_PAST, so for immediate posting use the current time plus a minute.
  • mediaUrls: up to 10 public https image or video URLs. Publora downloads them server-side and attaches them before validation, so media and scheduling happen in one call. This is the one-shot alternative to the draft then get_upload_url then complete_media flow. Ingestion is rate-limited to 60 URLs per hour.

get_upload_url

Get presigned URL for video upload.

Parameters:

  • postGroupId: Post ID to attach video to
  • fileName: Video file name (e.g., "video.mp4")
  • contentType: video/mp4, video/quicktime, or video/webm
  • type: "video"

complete_media

Finalize a file uploaded through get_upload_url, after the presigned PUT succeeds. Optional, because scheduling also finalizes pending media, but calling it early surfaces format and probe errors before publish. Not needed for media attached with mediaUrls.

Parameters:

  • mediaId: the id returned by get_upload_url

list_connections

List your connected accounts with their platform IDs. Call this first and copy the IDs verbatim; they are never guessable.

list_posts / get_post / update_post / delete_post

Manage scheduled and draft posts. update_post also patches content and platforms on a draft or scheduled post, so fixing a typo or retargeting no longer means delete and recreate. delete_media and prune_media_reference clean up uploaded files.

Platform Settings (via REST API)

TikTok has 7 platform-specific settings controlled via platformSettings:

{
  "platformSettings": {
    "tiktok": {
      "viewerSetting": "PUBLIC_TO_EVERYONE",
      "allowComments": true,
      "allowDuet": false,
      "allowStitch": false,
      "commercialContent": false,
      "brandOrganic": false,
      "brandedContent": false
    }
  }
}

Viewer Settings (Required)

ValueDescription
PUBLIC_TO_EVERYONEAnyone can view (default)
MUTUAL_FOLLOW_FRIENDSOnly mutual followers
FOLLOWER_OF_CREATOROnly your followers
SELF_ONLYOnly you (draft-like)

Interaction Settings

SettingDefaultDescription
allowCommentstrueWhether viewers can comment
allowDuetfalseWhether viewers can create Duets
allowStitchfalseWhether viewers can Stitch

Commercial Content Settings

SettingDefaultDescription
commercialContentfalseIs this commercial content?
brandOrganicfalseOrganic brand promotion
brandedContentfalsePaid partnership/sponsored

Note: If commercialContent is true, at least one of brandOrganic or brandedContent must also be true.

Note: platformSettings is accepted by the MCP create_post and update_post tools as well as over REST. The schema is strict: a mistyped platform or key is rejected with a validation error rather than silently dropped.

Critical Restrictions

1. Unaudited Apps = PRIVATE Only

CRITICAL: If your TikTok app hasn't passed TikTok's review process, you can ONLY post PRIVATE videos (SELF_ONLY). All other viewerSetting values will be overridden to SELF_ONLY.

To post public videos, your app must be audited by TikTok.

2. Media Required, Video or Image Carousel

TikTok does NOT support text-only posts: every post needs media.

It does take image carousels: up to 35 images, JPEG, PNG or WebP, 20 MB each. A post is either a carousel or a single video, never both.

3. Minimum 23 FPS

Videos below 23 frames per second will be rejected by TikTok.

Examples

Basic Video Post

Post this video to TikTok:
"How we built our startup in 60 seconds #startup #tech #coding"

Private Draft (Testing)

Upload this video as a private draft to TikTok (only I can see it):
"Testing new content format"

Use viewerSetting: "SELF_ONLY" for testing before making public.

Branded Content

Post this sponsored video to TikTok with proper disclosure:
"Loving this new product from @brand! #ad #sponsored"

Set commercialContent: true and brandedContent: true for paid partnerships.

Scheduled Post

Schedule this TikTok video for tomorrow at 6 PM:
"Weekend vibes incoming! #weekend #fun"

Supported Video Formats

FormatRecommendedNotes
MP4YesMost reliable
MOVYesApple format
WebMYesWeb format
AVIAccepted by PubloraMay be rejected by TikTok
MKVAccepted by PubloraMay be rejected by TikTok

Recommendation: Use MP4 for best compatibility.

Best Practices

Content

  1. Hook in first 3 seconds: Grab attention immediately
  2. Optimal length: 15-60 seconds for best engagement
  3. Trending sounds: Use trending audio when possible
  4. Hashtag strategy: 3-5 relevant hashtags

Technical

  1. Vertical video: 9:16 aspect ratio performs best
  2. High quality: At least 720p resolution
  3. 23+ FPS: Ensure smooth playback
  4. MP4 format: Most reliable format

Timing

  • Best times: 7-9 AM, 12-3 PM, 7-11 PM in target timezone
  • Frequency: 1-3 posts per day for growth
  • Consistency: Regular posting schedule helps algorithm

Troubleshooting

ErrorCauseSolution
unaudited_client_can_only_post_to_private_accountsApp not approvedSubmit app for TikTok review or use SELF_ONLY
spam_risk_too_many_postsDaily limit reachedWait 24 hours
duration_check_failedVideo too long/shortEnsure 3 seconds to 10 minutes
file_format_check_failedWrong video formatUse MP4, MOV, or WebM
"23 FPS required"Low frame rateRe-encode video at 23+ FPS
"TikTok requires selecting who can view"Missing viewerSettingAlways include viewerSetting in platformSettings

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

publora/bluesky-post

Use when the user wants to post or schedule to Bluesky through Publora. Handles the 300-character cap, auto-detected hashtags and links, up to 4 images, and videos. Alt text cannot be set through the API. Needs a Bluesky app password, never the main password. Not for Mastodon (use social-post).

publora/instagram-post

Use when the user wants to post or schedule to Instagram through Publora: a single image, a 2-10 image carousel, a Reel or a Story. Requires a Business account and an image or video; text-only posts are rejected by the API. Not for Threads (use threads-post).

publora/linkedin-analytics

Analyze LinkedIn performance and manage engagement through Publora. Use when the user asks how a LinkedIn post or account performed (impressions, reach, reactions, comments, reshares, follower growth) or wants to react, comment, reshare or resolve an @mention. Statistics run over the REST API, engagement over MCP tools. Not for creating posts (use linkedin-post).

publora/linkedin-post

Use when the user wants to publish or schedule a LinkedIn post through Publora: text, a multi-image grid, a video, a PDF document, or @mentions. Not for analytics, reactions, comments or reshares (use linkedin-analytics), and not for other platforms.

publora/social-post

Use when the user wants to post or schedule to YouTube, a Facebook Page or Mastodon through Publora. YouTube needs a video on every post, Facebook publishes to Pages only, Mastodon caps at 500 characters. Not for the platforms that have their own skill.

publora/telegram-post

Use when the user wants to post or schedule to a Telegram channel or group through Publora, using a bot. Covers Telegram markdown, silent delivery, link previews and forward protection. Bot API caps media captions at 1,024 characters and videos at 50 MB. Not for other platforms (each has its own skill).

publora/threads-post

Create and schedule Threads posts with image carousels and reply control via Publora MCP. Use when the user wants to post to Meta's Threads. Multi-part threading is currently disabled by the platform, so long content stays a single post. Not for Instagram (use instagram-post) or X threads (use x-post).

publora/x-post

Use when the user wants to post or schedule to X (Twitter) through Publora, including threads auto-split past 280 characters, up to 4 images, or a video up to 140 seconds. X needs a paid Publora plan. Not for Threads or Bluesky (each has its own skill).

相关技能