Platform Guide

TikTok

TikTok is a video-led publishing surface with a small number of important platform-specific controls. UniPost keeps those controls under `platform_options.tiktok` while preserving a consistent top-level request shape.

Overview

TikTok supports a single video or a photo carousel depending on the upload mode. Text-only posts are not supported, and image/video mixing is not supported in one publish request.

Supported capabilities

CapabilitySupportedNotes
Text-only postsXTikTok is media-first
Photo carouselUp to 35 images
Video postsSingle video
ThreadsXNot applicable
Privacy optionsUse `platform_options.tiktok`
AnalyticsPartialDepends on connected account access

Requirements

FieldRequiredLimitsNotes
media_urlsRequired1 video OR up to 35 imagesPrimary publish surface
captionOptional2,200 charsPair with media
platform_options.tiktok.privacy_levelOptionalprivacy enumControls audience visibility
platform_options.tiktok.upload_modeOptionalpull_from_url / file_uploadUse file_upload if CDN domain is not registered

Platform-specific options

OptionValuesNotes
platform_options.tiktok.privacy_levelSELF_ONLY / PUBLIC_TO_EVERYONE / MUTUAL_FOLLOW_FRIENDS / FOLLOWER_OF_CREATORAudience visibility
platform_options.tiktok.photo_cover_index0-based numberWhich image becomes the carousel cover

Example requests

The examples below are intentionally small and copyable. They show the request body only, assuming a standard POST /v1/social-posts call with Bearer auth.

Video post

json
{
  "caption": "How we built it",
  "account_ids": ["sa_tiktok_1"],
  "media_urls": ["https://cdn.example.com/build.mp4"],
  "platform_options": {
    "tiktok": {
      "privacy_level": "PUBLIC_TO_EVERYONE"
    }
  }
}
json
{
  "caption": "Lookbook 📸",
  "account_ids": ["sa_tiktok_1"],
  "media_urls": [
    "https://cdn.example.com/look-1.jpg",
    "https://cdn.example.com/look-2.jpg",
    "https://cdn.example.com/look-3.jpg"
  ],
  "platform_options": {
    "tiktok": {
      "privacy_level": "PUBLIC_TO_EVERYONE",
      "photo_cover_index": 0
    }
  }
}

Common validation errors

CodeWhat it means
media_requiredTikTok requires video or image carousel media
mixed_media_unsupportedDo not mix image and video in one publish body
invalid_upload_modeTikTok upload mode is not recognized

Once you know the correct request shape for this platform, move to the API reference for the full endpoint contract, response schema, and validation payload shape.