Apply for Content Posting API access in the TikTok Developer Portal; this requires a registered app and approval — access is not instant and may be restricted by region or use case.
Complete OAuth 2.0 authorization to obtain an access token with the video.publish or video.upload scope for the target TikTok creator account.
Initiate an upload by POSTing to https://open.tiktokapis.com/v2/post/publish/video/init/ with post_info (title, privacy_level, etc.) and source_info specifying PULL_FROM_URL or FILE_UPLOAD.
For FILE_UPLOAD, upload the video in chunks to the upload_url returned in the init response, respecting the chunk size constraints provided.
Poll the publish status via POST https://open.tiktokapis.com/v2/post/publish/status/fetch/ using the publish_id until the status is PUBLISH_COMPLETE.
Handle creator-side review: TikTok may place uploaded content under review before it becomes publicly visible, which is outside API control.
Known gotchas
The Content Posting API is not universally available — many developers find their app stuck in sandbox mode; production access requires explicit approval and may be denied without explanation.
Privacy settings set via API (e.g., PUBLIC_TO_EVERYONE) can be overridden by the creator's own account-level privacy defaults, so the published visibility may differ from what was requested.
Access tokens are short-lived (typically around 24 hours); refresh tokens must be used before expiry, and the refresh token itself expires after a longer window — failure to refresh both will require the user to re-authorize.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp