Skip to content
Developer guide

How to post to TikTok with the Content Posting API

To post a video to TikTok with the API, register an app with the Content Posting API product, get a user's OAuth token with the video.publish scope, query the creator's options, call the init endpoint with your video source, upload the file or let TikTok pull it from a verified URL, then poll the status endpoint. Below are the steps, the traps, and a one-call shortcut.

·6 min read·PostMyReels team

Developer's desk with a laptop showing code and a phone next to it

Quick answer: TikTok's Content Posting API has two flows. Direct Post publishes to the creator's profile and needs the video.publish scope. Upload sends the video to the creator's TikTok inbox as a draft and needs video.upload. Either way you call an init endpoint, transfer the video, and poll /v2/post/publish/status/fetch/. Until TikTok audits your app, everything you post is private. If you would rather skip the app review and the plumbing, the PostMyReels API does it in one POST /posts.

This guide follows TikTok's official documentation, checked in November 2026. TikTok edits its docs often, so confirm field names in the Content Posting API reference before you ship.

What you need first

  • A TikTok developer app with the Content Posting API product added, and the Direct Post configuration enabled if you want to publish rather than create drafts.
  • Approved scopes. video.publish for Direct Post, video.upload for inbox uploads.
  • A user access token from TikTok Login (OAuth) for each creator who posts. You never handle their password.
  • For URL pulls: a domain or URL prefix verified in TikTok. Without it, init fails with url_ownership_unverified.

Not sure which audit state you are in? Read why TikTok API posts stay private.

Your appPOST /api/v1/posts
PostMyReelsuploads, retries, per-platform options
TikTokPublished
InstagramPublished
YouTubePublished
Your apppost.published / post.failed
One request in, one webhook back. Errors come with a code, a message and a fix.

Direct Post vs upload to inbox

Direct PostUpload (inbox)
ResultVideo is published on the profileDraft lands in the creator's TikTok inbox to finish and post
Scopevideo.publishvideo.upload
Init endpoint/v2/post/publish/video/init//v2/post/publish/inbox/video/init/
Caption and privacyYou set them in post_infoCreator sets them in the app
Best forScheduling and automationApps that hand drafts to a creator

Step by step: Direct Post

All endpoints live on https://open.tiktokapis.com. Send Authorization: Bearer {access_token} and Content-Type: application/json; charset=UTF-8.

1. Query creator info

POST /v2/post/publish/creator_info/query/ returns what this creator is allowed to do right now, including the allowed privacy_level_options, comment, duet and stitch settings, and the maximum video duration. Call it right before each post and use its answers in your form. Sending a privacy level that is not in the list fails with privacy_level_option_mismatch.

2. Initialize the post

curl -X POST "https://open.tiktokapis.com/v2/post/publish/video/init/" \
  -H "Authorization: Bearer $TIKTOK_ACCESS_TOKEN" \
  -H "Content-Type: application/json; charset=UTF-8" \
  -d '{
    "post_info": {
      "title": "Fresh sourdough every morning #bakery",
      "privacy_level": "SELF_ONLY",
      "disable_duet": false,
      "disable_comment": false,
      "disable_stitch": false,
      "video_cover_timestamp_ms": 1000
    },
    "source_info": {
      "source": "FILE_UPLOAD",
      "video_size": 48211034,
      "chunk_size": 48211034,
      "total_chunk_count": 1
    }
  }'

Key fields from the reference:

  • privacy_level (required): PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR or SELF_ONLY, and it must be one the creator-info call returned.
  • title: the caption, up to 2,200 UTF-16 runes.
  • brand_content_toggle and brand_organic_toggle: disclosure flags for paid partnerships and your own business.
  • is_aigc: label the video as AI-generated.
  • source_info.source: FILE_UPLOAD or PULL_FROM_URL.

The response holds data.publish_id (keep it) and, for file uploads, data.upload_url, valid for one hour. The reference lists a limit of 6 init requests per minute per user access token.

3. Send the video

FILE_UPLOAD: PUT the bytes to the full upload_url, query string included, with Content-Type set to video/mp4, video/quicktime or video/webm, plus Content-Length and a Content-Range: bytes FIRST-LAST/TOTAL header. For large files you send several chunks and declare chunk_size and total_chunk_count at init. The upload page does not state chunk size limits, so read TikTok's media transfer guide for them.

curl -X PUT "$UPLOAD_URL" \
  -H "Content-Type: video/mp4" \
  -H "Content-Length: 48211034" \
  -H "Content-Range: bytes 0-48211033/48211034" \
  --data-binary @reel.mp4

PULL_FROM_URL: pass video_url in source_info and skip this step. TikTok downloads the file itself, but only from a domain or prefix you verified.

4. Poll the status

curl -X POST "https://open.tiktokapis.com/v2/post/publish/status/fetch/" \
  -H "Authorization: Bearer $TIKTOK_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "publish_id": "v_pub_file~v2-1.7301234567890" }'

The response carries status: PROCESSING_UPLOAD, PROCESSING_DOWNLOAD, SEND_TO_USER_INBOX, PUBLISH_COMPLETE or FAILED. On failure, fail_reason says why. Some reasons mean fix the file (file_format_check_failed, duration_check_failed, frame_rate_check_failed). Others mean retry later (internal, video_pull_failed). Others mean stop (auth_removed, spam_risk variants). The post ID in publicaly_available_post_id (spelled that way in the docs) appears only once a public post passes moderation, which can take a minute or a few hours. The status endpoint allows 30 requests per minute per token, so poll every few seconds, not in a tight loop.

Upload to inbox instead

For drafts, call POST /v2/post/publish/inbox/video/init/ with source_info only. There is no post_info, because the creator finishes the caption and privacy in TikTok. Status moves to SEND_TO_USER_INBOX when the creator has been notified. Photo posts use a different init endpoint, /v2/post/publish/content/init/.

Errors you will meet

CodeMeaning
unaudited_client_can_only_post_to_private_accountsYour client is not audited, so public posting is blocked
privacy_level_option_mismatchPrivacy level missing or not in the creator's options
url_ownership_unverifiedPULL_FROM_URL source is not on a verified domain
spam_risk_too_many_postsThe creator hit the daily posting cap
access_token_invalid / scope_not_authorizedToken expired, or missing the needed scope
rate_limit_exceededOver the per-token request limit

The audit is the big one. TikTok states that all content posted by unaudited clients is restricted to private viewing. You build and test in that mode, then apply for an audit to lift it.

Design notes for a production integration

  • Store tokens safely. Access tokens expire, so you need the refresh flow and a place to keep tokens encrypted. When a refresh fails, surface it to the user as "reconnect TikTok" rather than failing silently.
  • Make init idempotent on your side. If your worker retries after a timeout, you may create two publish IDs and post twice. Save the publish_id against your own record before you upload.
  • Validate before you call. Check duration against the creator-info maximum, and check the format and aspect ratio yourself, so you fail fast instead of reading fail_reason a minute later.
  • Respect the limits. Six init calls a minute per token and a daily posting cap per creator mean a bulk job needs a queue, not a loop.
  • Treat post IDs as late. The public post ID arrives after moderation, so store the publish_id first and fill the post ID in when it appears.
  • Show the creator the rules. TikTok expects apps to present the privacy options and disclosure choices to the user, and to use the values from creator info. Read TikTok's product guidelines for the exact wording of the requirements.

Test before you go live

Because unaudited posts are private anyway, you can build the whole pipeline against a test creator account and check each status transition. With PostMyReels, a pmr_test_ key goes further: it runs the same validation as a live key and simulates the delivery, so you can wire up webhooks and error handling without posting anything. When you switch to a live key, nothing else in your code changes.

The shortcut: one call with PostMyReels

Everything above is per platform. The OAuth flow, token refresh, creator-info checks, chunked upload and status polling are yours to build and keep working, and so is the app review. PostMyReels wraps it in one request, and the same call also reaches Instagram and YouTube. Our API reference is documented in the developers overview and the TikTok API page.

curl -X POST https://api.postmyreels.com/api/v1/posts \
  -H "Authorization: Bearer pmr_live_xxx" \
  -H "Idempotency-Key: 7c1e-2027-02-25-a" \
  -H "Content-Type: application/json" -d '{
    "profile": "bakery-kowalski",
    "platform": ["tiktok"],
    "media": [{"url": "https://cdn.example.com/reel.mp4"}],
    "caption": "Fresh sourdough every morning #bakery",
    "scheduled_at": "2027-03-01T09:30:00",
    "timezone": "Europe/Warsaw",
    "tiktok": { "privacy_level": "PUBLIC_TO_EVERYONE", "disable_duet": true }
  }'
  • You get 202 Accepted with a post_id and a deliveries[] list. Poll GET /posts/{id} or subscribe to the post.published and post.failed webhooks.
  • Set tiktok.upload_to_draft to true to send the video to the TikTok inbox instead of publishing.
  • Errors come back as { "error": { "code", "message", "fix" } }, with the cause and the fix.
  • pmr_test_ keys validate the request and simulate delivery without posting anything.

YouTube works today and Instagram opens after Meta's review. While TikTok's audit of our app is pending, TikTok posts from PostMyReels publish as private, the same limit that applies to any unaudited app. See the developer overview for the current status.

One request, three platforms
One request, three platforms

Building this for clients? Read the social media API page, then Start free

Done? Connect TikTok now and we'll run a test post.

Start free
Was this guide helpful?Tested on [app version] · November 29, 2026

Checked against each platform's current rules. Something changed? Tell us.

FAQ

Questions

Can you post to TikTok with an API?

Yes. TikTok's Content Posting API lets an approved app publish videos and photos on behalf of users who authorized it, using the video.publish scope for Direct Post or video.upload for sending drafts to the inbox.

Why are my TikTok API posts private?

TikTok restricts all content posted by unaudited API clients to private viewing. Public posting is blocked with the error unaudited_client_can_only_post_to_private_accounts until your app passes TikTok's audit.

What is the difference between Direct Post and Upload?

Direct Post publishes to the profile and lets your app set the caption and privacy. Upload sends the video to the creator's TikTok inbox as a draft that they finish and post in the app.

How do I check if a TikTok API post went live?

Call POST /v2/post/publish/status/fetch/ with the publish_id from init. The status moves to PUBLISH_COMPLETE on success, or FAILED with a fail_reason.

Can I skip building the TikTok integration myself?

Yes. A posting API such as PostMyReels handles OAuth, uploads and status polling behind a single POST /posts request, and the same call can post to Instagram and YouTube.

Post to TikTok, Instagram and YouTube from one place.

Free plan, no card. Connect an account in under a minute.

Start freeAsk your AI