What is the TikTok Content Posting API, and which scope do you need?
The TikTok Content Posting API lets your app send a video to a creator's TikTok account once the creator authorizes it. Choose Direct Post (scope video.publish) to create the post from your app, or Upload (scope video.upload) to deliver a draft that the creator finishes in TikTok.
TikTok must approve your app for the scope, and each creator must grant it. This guide covers video; photos use POST /v2/post/publish/content/init/ with post_mode set to DIRECT_POST or MEDIA_UPLOAD.
| What differs | Direct Post | Upload (inbox) |
|---|---|---|
| Scope | video.publish | video.upload |
| Init endpoint | POST /v2/post/publish/video/init/ | POST /v2/post/publish/inbox/video/init/ |
| Creator info first | Required: POST /v2/post/publish/creator_info/query/ | Not part of the documented flow |
| Init body | post_info (caption, privacy, interactions) plus source_info | source_info only |
| Who finishes the post | Your app | The creator, after tapping the inbox notification |
| Final status | PUBLISH_COMPLETE | SEND_TO_USER_INBOX, then PUBLISH_COMPLETE once the creator posts |
Direct Post or Upload to the inbox: which should you build on?
Build on Upload when the creator should finish each post in TikTok, or when you post to accounts you or your team manage. TikTok's Direct Post guidelines mark "A utility tool to help upload contents to the account(s) you or your team manages" as not acceptable, so use Upload for that job.
Build on Direct Post when many creators export videos through your own Post to TikTok screen, and plan for the audit before you promise public posts.
| Your situation | Build on | Why |
|---|---|---|
| A tool for your own or your team's accounts | Upload (inbox) | The audit guidelines reject utility tools for accounts you or your team manage |
| A product where creators export videos from your app | Direct Post | It matches the intended use, but you must build TikTok's required screen and pass the audit |
| A creator should review and edit each post in TikTok | Upload (inbox) | The creator reviews, edits and posts the draft in TikTok |
| Public posts with no human step | Direct Post, after the audit | Upload always waits for the creator to tap the notification |
Why are your TikTok API posts private, and how does the audit work?
TikTok limits every Direct Post from an unaudited client to private viewing (SELF_ONLY), as checked on 26 November 2026. The reference says the init call is blocked with unaudited_client_can_only_post_to_private_accounts, and the guidelines add that accounts must be private when the client posts and that only 5 users can post per 24 hours.
To make an unaudited post public, the account owner first makes the account public, then sets each post to Everyone in TikTok. To lift the limits for good, your client must pass TikTok's audit of its Terms of Service compliance, and TikTok's guidelines list what a compliant client does.
| Audit area | What TikTok's guidelines expect |
|---|---|
| Intended use | Authentic creators posting original content; not an app that copies content from other platforms, a test app or an internal tool for your own accounts |
| Creator info and settings | Fetch creator_info whenever the Post to TikTok page renders and show the creator's nickname; build the privacy dropdown from privacy_level_options with no default; leave comments, duets and stitches unchecked |
| Commercial content | A disclosure toggle that is off by default, with Your brand and Branded content options; branded content cannot be private |
| Consent and preview | Show a preview, send nothing before the user agrees, show "By posting, you agree to TikTok's Music Usage Confirmation", and add no watermarks |
How do you post a video with the TikTok Direct Post API?
Add the Content Posting API product to your TikTok for Developers app, turn on its Direct Post configuration, get video.publish approved and have the creator authorize your app. A post then takes four steps: read the creator's settings, initialize the post, send the file and poll the status.
The Node 18 script below sends a local file with FILE_UPLOAD, which TikTok's guidelines recommend for videos on the user's device. A server that already holds the video should use PULL_FROM_URL, next.
// Direct Post a local video to TikTok (Node 18+, no dependencies)
// Run: TIKTOK_ACCESS_TOKEN=act.xxx node tiktok-direct-post.mjs clip.mp4 "Caption #fyp"
import { readFile } from 'node:fs/promises';
const API = process.env.TIKTOK_API ?? 'https://open.tiktokapis.com'; // override only to test against a mock
const PRIVACY = process.env.PRIVACY ?? 'SELF_ONLY'; // unaudited clients can only post SELF_ONLY
const [file, title = ''] = process.argv.slice(2);
async function call(path, body) {
const res = await fetch(API + path, {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.TIKTOK_ACCESS_TOKEN, 'Content-Type': 'application/json; charset=UTF-8' },
body: body && JSON.stringify(body),
});
const json = await res.json();
if (json.error?.code !== 'ok') throw new Error(path + ' -> ' + res.status + ' ' + json.error?.code + ': ' + json.error?.message);
return json.data;
}
// 1. Latest creator settings: show them to the user and honor them
const creator = await call('/v2/post/publish/creator_info/query/');
if (!creator.privacy_level_options.includes(PRIVACY)) throw new Error('privacy_level_option_mismatch: ' + creator.privacy_level_options);
// 2. Chunk plan: whole file under 10 MB, else 10,000,000-byte chunks; the last chunk takes the remainder
const video = await readFile(file);
const size = video.length;
const chunkSize = size < 10_000_000 ? size : 10_000_000;
const total = Math.floor(size / chunkSize);
// 3. Initialize the post; interactions stay off until the user turns them on
const init = await call('/v2/post/publish/video/init/', {
post_info: { title, privacy_level: PRIVACY, disable_comment: true, disable_duet: true, disable_stitch: true, brand_content_toggle: false, brand_organic_toggle: false, is_aigc: false },
source_info: { source: 'FILE_UPLOAD', video_size: size, chunk_size: chunkSize, total_chunk_count: total },
});
// 4. PUT the chunks in order: 206 for each chunk but the last, 201 for the last
for (let i = 0; i < total; i++) {
const first = i * chunkSize;
const end = i === total - 1 ? size : first + chunkSize;
const res = await fetch(init.upload_url, {
method: 'PUT',
headers: { 'Content-Type': 'video/mp4', 'Content-Range': `bytes ${first}-${end - 1}/${size}` },
body: video.subarray(first, end),
});
if (res.status !== (i === total - 1 ? 201 : 206)) throw new Error('chunk ' + (i + 1) + ' of ' + total + ' -> HTTP ' + res.status);
}
// 5. Poll the status (30 requests a minute allows one call every 2 seconds)
for (;;) {
const s = await call('/v2/post/publish/status/fetch/', { publish_id: init.publish_id });
console.log(s.status, s.fail_reason ?? '');
if (s.status === 'PUBLISH_COMPLETE' || s.status === 'FAILED') break;
await new Promise((r) => setTimeout(r, 5000));
}How do you post from a URL instead of uploading chunks?
TikTok's guidelines say to use PULL_FROM_URL when the video is already on your servers. TikTok downloads the file, so you skip the chunk loop, but the URL must sit under a domain or URL prefix you verified in your app's URL properties.
It must use https and must not redirect, and the download times out one hour after it starts. An unverified URL fails with url_ownership_unverified, and POST /v2/post/publish/cancel/ stops a slow download on a best-effort basis.
# 1. Creator settings: show them to the user and honor them
curl -s -X POST https://open.tiktokapis.com/v2/post/publish/creator_info/query/ -H "Authorization: Bearer $TIKTOK_ACCESS_TOKEN" -H "Content-Type: application/json; charset=UTF-8"
# 2. Initialize: TikTok downloads the file from a verified https URL
curl -s -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":"Caption #fyp","privacy_level":"SELF_ONLY","disable_comment":true,"disable_duet":true,"disable_stitch":true,"brand_content_toggle":false,"brand_organic_toggle":false,"is_aigc":false},"source_info":{"source":"PULL_FROM_URL","video_url":"https://cdn.example.com/clip.mp4"}}'
# 3. Status, with the publish_id from step 2
curl -s -X POST https://open.tiktokapis.com/v2/post/publish/status/fetch/ -H "Authorization: Bearer $TIKTOK_ACCESS_TOKEN" -H "Content-Type: application/json; charset=UTF-8" -d '{"publish_id":"PUBLISH_ID"}'How do you split a video into TikTok upload chunks?
total_chunk_count is video_size divided by chunk_size, rounded down. Every chunk except the last must be 5 MB to 64 MB, a file under 5 MB goes up whole, a file over 64 MB needs several chunks, and a post allows 1 to 1,000 chunks sent in order. The last chunk takes the remainder, up to 128 MB.
Each PUT carries Content-Range: bytes first-last/total. TikTok answers 206 while chunks remain and 201 after the last; 416 means a Content-Range mismatch, 403 an expired one-hour upload_url, and a 5xx means resend that chunk.
| Video size (bytes) | chunk_size | total_chunk_count | Chunks sent | Result |
|---|---|---|---|---|
| 4,194,304 | 4,194,304 | 1 | 1 x 4,194,304 | Valid: whole upload, then 201 |
| 50,000,123 | 10,000,000 | 5 | 4 x 10,000,000, then 10,000,123 | Valid: TikTok's own example, 206 four times, then 201 |
| 104,857,600 (100 MiB) | 10,000,000 | 10 | 9 x 10,000,000, then 14,857,600 | Valid: the largest file Reeling accepts |
| 104,857,600 | 64,000,000 | 1 | 1 x 104,857,600 | Invalid: over 64 MB needs several chunks |
| 4,194,304 | 2,097,152 | 2 | 2 x 2,097,152 | Invalid: under 5 MB must go up whole |
What do the TikTok publish status values mean?
POST /v2/post/publish/status/fetch/ takes the publish_id and returns a status. Poll it, or register webhooks for post.publish.failed, post.publish.complete, post.publish.inbox_delivered and post.publish.publicly_available.
TikTok returns a post_id only for a public post that has passed moderation, which usually takes under a minute and sometimes a few hours. The field is spelled publicaly_available_post_id in TikTok's reference.
On FAILED, fail_reason names the cause, such as file_format_check_failed, duration_check_failed, picture_size_check_failed or video_pull_failed. TikTok marks internal as retryable and says not to retry auth_removed, spam_risk_user_banned_from_posting, spam_risk_text or spam_risk.
| status | Applies to | Meaning | What to do |
|---|---|---|---|
| PROCESSING_UPLOAD | FILE_UPLOAD | TikTok is receiving your chunks (uploaded_bytes) | Keep sending, then wait |
| PROCESSING_DOWNLOAD | PULL_FROM_URL | TikTok is downloading your video_url | Wait; it times out after one hour |
| SEND_TO_USER_INBOX | Upload | A notification is in the creator's inbox | Tell the creator to open it |
| PUBLISH_COMPLETE | Both | Direct Post: posted. Upload: the creator posted the draft | Store the post_id if one is returned |
| FAILED | Both | The process stopped; fail_reason says why | Fix the cause, then start a new init |
Which TikTok API errors block a post, and how do you fix them?
Check error.code as well as the HTTP status. When the creator cannot post right now, the creator_info call can answer HTTP 200, which TikTok's reference marks as intentional, with spam_risk_too_many_posts, spam_risk_user_banned_from_posting or reached_active_user_cap in error.code.
| error.code | HTTP | Cause | Fix |
|---|---|---|---|
| unaudited_client_can_only_post_to_private_accounts | 403 | An unaudited client posted to an account that is not private | Use a private account and SELF_ONLY, or pass the audit |
| privacy_level_option_mismatch | 403 | privacy_level is missing or not in privacy_level_options | Send an option creator_info returned |
| spam_risk_too_many_posts | 403 | The creator reached the daily API post cap | Wait; the creator can still post in the TikTok app |
| reached_active_user_cap | 403 | Your client reached its daily cap of active creators | Wait for the next 24-hour window |
| spam_risk_too_many_pending_share | 403 | More than 5 pending inbox shares in 24 hours | Wait; the cap is per 24-hour period |
| url_ownership_unverified | 403 | The PULL_FROM_URL host or prefix is not verified | Verify it in your app's URL properties |
| access_token_invalid, scope_not_authorized | 401 | Expired token, or no grant for the scope | Refresh the token or ask the creator to authorize again |
| rate_limit_exceeded | 429 | Too many requests for one user token | Back off; see the limits below |
What are the TikTok Content Posting API limits?
TikTok's rate limits count requests in a one-minute sliding window and answer extra ones with HTTP 429 rate_limit_exceeded; each endpoint's limit applies per user access token. Daily caps are separate, and the post cap is shared with every other app that posts to the same creator.
| Limit | Value |
|---|---|
| init requests, both endpoints | 6 a minute per user access token |
| creator_info requests | 20 a minute per user access token |
| status/fetch requests | 30 a minute per user access token |
| Direct Post posts per creator account | About 15 per 24 hours, varies by creator, shared across clients |
| Pending inbox shares | At most 5 in any 24-hour period |
| Unaudited client | 5 users per 24 hours, private accounts, SELF_ONLY posts |
| Caption (post_info.title) | 2,200 UTF-16 runes |
| Video file | Up to 4 GB; MP4 (recommended), WebM, MOV; H.264 (recommended), H.265, VP8, VP9; 23 to 60 FPS; 360 to 4,096 px per side |
| Video length | 3 minutes for every creator, 5 or 10 for some (max_video_post_duration_sec); the Upload endpoint accepts at most 10 minutes |
Can the TikTok posting API schedule posts?
No. Neither init request has a scheduling field: the Direct Post body takes post_info (caption, privacy_level, interaction flags, cover timestamp, brand and AI flags) and source_info, and the Upload body takes source_info alone. To publish later, your own queue stores the job and calls init when it is due.
| At send time | Why |
|---|---|
| Query creator info again | A creator can change privacy and interaction settings after you queued the post |
| Check the daily budget | About 15 posts per creator account per 24 hours, and at most 5 pending inbox shares |
| Initialize and send within the hour | upload_url expires after one hour, and a pull download times out after one hour |
| Poll or listen for the result | status/fetch allows 30 requests a minute per token; webhooks avoid polling |
Can you skip the build and post to TikTok with Reeling?
Reeling's REST API and MCP server run the queue for you. Its TikTok mode defaults to inbox delivery, and its platform data (reviewed 15 October 2026) says public Direct Post awaits TikTok's audit, so the creator taps the inbox notification to finish each post.
Over MCP, reeling_publish_post takes scheduled_at but lists no TikTok-specific fields, so set mode and is_aigc (true for AI-generated video) through REST. The dashboard composer also checks TikTok video size (360 to 4,096 px per side), a 10-minute cap and, in direct mode, 2,200 characters.
# Schedule one TikTok video to the creator's inbox (IDs and URL are placeholders)
curl -s -X POST https://api.reeling.app/api/v1/publish -H "X-API-Key: $REELING_API_KEY" -H "Content-Type: application/json" -d '{"project_id":"YOUR_PROJECT_UUID","platforms":["tiktok"],"video_url":"https://example.com/clip.mp4","scheduled_for":"2026-12-01T15:00:00Z","tiktok":{"mode":"inbox","title":"Caption #fyp","is_aigc":false}}'
# Check the post with the post_id from the response
curl -s https://api.reeling.app/api/v1/posts/POST_ID -H "X-API-Key: $REELING_API_KEY"| Job | Build it yourself | Reeling REST API or MCP |
|---|---|---|
| TikTok app and scopes | Register the app, get video.publish or video.upload approved, handle OAuth | Connect the TikTok account in Reeling |
| Sending the file | Chunked PUT, or PULL_FROM_URL from a verified domain | Send a video_url for an MP4, MOV or WebM up to 100 MiB |
| Scheduling | Your own queue | scheduled_for in REST, scheduled_at in MCP |
| Public Direct Post | Needs your own audited client | Awaiting TikTok's audit (platform data, 15 October 2026) |
| Cost | Your build and hosting time | Creator $19 a month (API, MCP, 5,000 API requests, up to 15 channels) or Agency $39 (50,000 requests, 30 channels); Starter $9 has no API or MCP |
How was this TikTok API guide checked?
Every TikTok figure was read on 26 November 2026 in the TikTok for Developers pages under Sources, and TikTok changes its documentation without notice. We ran the Node script and the PULL_FROM_URL commands against a local mock that enforces the documented rules, not against live TikTok, so try them on a private test account first.
Reeling's prices are monthly list prices from its plans data (changed 24 November 2026), and its TikTok status comes from its platform data and OpenAPI file (version 1.1.0).