Docs
TikTok

Posts

Publish videos and photos to TikTok through the shared posts API.

Publish to a TikTok creator account through POST /v1/posts.

Cross-platform flow: Media guide.

Supported formats

mediaKindSupportedNotes
videoYesExactly one mediaUrls entry
imageYesOne image URL (host must be verified with TikTok)
multi-imageYes2–35 image URLs (photo post)
text / storiesNoUNSUPPORTED_MEDIA_KIND

Features

FeatureSupportedNotes
Thread / quoteNo
ScheduleYesscheduledFor + timezone
PrivacyYesDestination privacyLevel required
DescriptionPhoto onlyOptional destinations[].description
Remote deleteNo

Privacy (required)

TikTok does not allow a silent default. Every TikTok destination must include privacyLevel:

ValueMeaning
PUBLIC_TO_EVERYONEEveryone (audited apps / allowed creators)
MUTUAL_FOLLOW_FRIENDSFriends
FOLLOWER_OF_CREATORFollowers
SELF_ONLYOnly me (required for unaudited clients)

Onepostly rejects privacyLevel values not allowed for that creator. Check available options via the TikTok creator-info connection endpoint when needed.

privacyLevel is TikTok-only. Sending it on another platform returns 400 VALIDATION_ERROR.

Create (video)

curl -X POST https://api.onepostly.com/v1/posts \
  -H "x-api-key: op_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Launch clip #fyp",
    "mediaKind": "video",
    "mediaUrls": ["https://cdn.example.com/clip.mp4"],
    "destinations": [
      {
        "connectionId": "YOUR_TIKTOK_CONNECTION_ID",
        "privacyLevel": "SELF_ONLY"
      }
    ]
  }'

Response: 202 with status: "queued". When published, externalPostId is the TikTok post_id when publicly available, otherwise the publish_id.

{
  "text": "Short title",
  "mediaKind": "multi-image",
  "mediaUrls": [
    "https://cdn.example.com/1.jpg",
    "https://cdn.example.com/2.jpg"
  ],
  "destinations": [
    {
      "connectionId": "YOUR_TIKTOK_CONNECTION_ID",
      "privacyLevel": "SELF_ONLY",
      "description": "Longer caption with #hashtags"
    }
  ]
}

Photo posts require a verified URL property on your TikTok app for the media host.

Limits

LimitValue
Video sizeUp to 4 GB (TikTok)
Photo formatsJPEG / WebP
Unaudited Direct PostPrivate only + creator caps

See also