TikTok sandbox integration

Creator-approved direct publishing workflow.

This demo page shows where Ruikun AI integrates TikTok Login Kit and the Content Posting API. It is designed for sandbox app review and demonstrates user consent, account connection, AI news video generation, creator review, and creator-approved direct publishing.

Selected TikTok products and scopes
Login Kit
user.info.basic identifies the connected TikTok account.
Content Posting API
video.publish directly publishes a creator-approved video to the user's own TikTok account.

Flow

  1. Connect TikTok account
  2. Confirm granted scope
  3. Generate AI news video
  4. Review script, caption, and video
  5. Confirm publish with Content Posting API
1

Connect TikTok account

The user starts TikTok Login Kit authorization from this website. The OAuth flow uses the TikTok sandbox environment during review.

Product: Login Kit
2

Show connected account

After authorization, the app displays the connected TikTok account and confirms the minimum scope used for account identification.

TikTok account connected Granted scope: user.info.basic
3

Generate AI news video

The workflow creates a short AI news video draft from public technology news. The generated script, caption, and video remain unpublished until the creator approves them.

Vertical MP4 preview
4

Confirm publish through TikTok Content Posting API

Only after review, the creator clicks Confirm Publish. The app then uses TikTok's official Content Posting API for creator-approved direct publishing.

POST https://open.tiktokapis.com/v2/post/publish/video/init/
scope: video.publish
privacy_level: SELF_ONLY
source: PULL_FROM_URL
video_url: https://videos.ruikun-ai.com/sample.mp4
Product: Content Posting API
Publishing through TikTok Content Posting API Video posted successfully in sandbox demo mode.

User protection

Creator-approved direct publishing.