Docs
TikTok

Overview

Connect TikTok creators, Content Posting + Display scopes, and analytics.

Onepostly maps the TikTok Content Posting API (Direct Post) and Display API (stats + video list) into the same /v1/* surface as other platforms. This section covers TikTok-only behavior.

In this section

PageTopics
PostsVideo + photo Direct Post; privacyLevel; schedule
InsightsAccount stats, creator media list, per-post metrics

Cross-platform API flow: Media, Webhooks.

Connect

  1. Dashboard → Connections → connect TikTok
  2. Approve scopes in the TikTok consent screen
  3. Resolve connectionId with your API key:
curl https://api.onepostly.com/v1/connections \
  -H "x-api-key: op_YOUR_KEY"

Use the matching row’s id (where platform is "tiktok") as connectionId in publish requests.

OAuth scopes

ScopeUsed for
user.info.basicOpen id + avatar
user.info.profileDisplay name + username
user.info.statsFollower / following / likes / video counts
video.listList public videos + per-video metrics / post insights
video.publishDirect Post (video + photo)

Access tokens last about 24 hours; refresh tokens about 365 days. Connected accounts stay usable without manual re-auth while the refresh token is valid.

Reconnect existing TikTok connections after enabling new scopes so consent includes user.info.stats and video.list.

Developer Portal setup

  1. Create an app on TikTok for Developers
  2. Add Login Kit and Content Posting API (enable Direct Post)
  3. Request scopes above (including Display scopes for analytics)
  4. Register redirect URI:
    {API}/v1/connections/oauth/tiktok/callback
  5. For photo posts, verify your media CDN domain or URL prefix under URL properties

Capabilities

ActionSupportedNotes
Create postYesPOST /v1/posts
VideoYes
Image / multi-imageYesPhoto post; host must be verified
Text-only / stories / thread / quoteNo
ScheduleYesscheduledFor + timezone
PrivacyYesDestination privacyLevel required
Account statsYesGET /v1/connections/:id/stats
Creator media listYesGET /v1/connections/:id/media
Post insightsYesGET /v1/posts/:id/insights
Remote deleteNo
CommentsNo

Known limitations

  • Unaudited TikTok apps can only Direct Post as SELF_ONLY, with creator + daily caps. Public posting requires TikTok’s Content Posting audit.
  • privacyLevel must be allowed for that creator; invalid values are rejected.
  • Interaction toggles (comment / duet / stitch) default to disabled.
  • Photo URLs must be on a verified domain/URL prefix.
  • Post insights only cover videos TikTok exposes as public.

See also