TikTok API

TikTok posting API for developers and agents

Schedule TikTok videos and image posts from one REST API. Built for scripts, custom apps, and AI agents.

  • 7-day free trial
  • Video + images
  • Plans from $9.99/mo

step by step

How to post to TikTok with the API

Create a key, connect TikTok, then schedule a post.

Open the step-by-step guide

01Create an API key

Open Dashboard → AI & API, create a key, and send it as Authorization: Bearer pw_live_…. Connect your TikTok account if you have not already.

Endpoints

API base URL

https://postwing.io/api/v2

Docs

https://postwing.io/docs
02Schedule to TikTok

Call POST /posts with a caption, a time, your TikTok account id from GET /accounts, and media. Full field reference is in the API docs.

Example TikTok video
curl -s -X POST "https://postwing.io/api/v2/posts" \
  -H "Authorization: Bearer pw_live_…" \
  -H "Content-Type: application/json" \
  -d '{
  "caption": "New video from the TikTok posting API",
  "scheduled_at": "2026-10-05T18:00:00Z",
  "accounts": [
    {
      "id": "TIKTOK_ACCOUNT_ID",
      "options": {
        "visibility": "public"
      }
    }
  ],
  "media": [
    {
      "url": "https://cdn.example.com/video.mp4",
      "type": "video"
    }
  ]
}'

what you can do

TikTok posting from one API

Same PostWing API as the full product, scoped to TikTok when you post to a TikTok account.

  • Schedule TikTok videos and image posts
  • Upload media with a direct upload URL
  • Set privacy, comments, duet, and stitch options
  • Mark AI-generated content or save as draft
  • Edit or cancel scheduled TikTok posts from the same API

built for TikTok

Videos and images with platform controls

Upload media, set a caption, pick a time, and target TikTok. Tune privacy and interaction settings when you need them.

  • Videos publish as standard TikTok posts
  • Image posts support an optional title
  • Scheduled posts show up on your PostWing calendar

TikTok options

Platform settings that matter

Set these on accounts[].options when you need more control.

  • visibility public or private (default public)
  • allow_comments allow_duets, and allow_stitches toggles
  • ai_generated and save_as_draft when you need them
  • title for image posts only
  • Clear errors with a code and the exact field to fix
  • API key or OAuth with scoped access

one API

Same API for every network

There is no separate TikTok product. List more account ids in accounts on the same call. Add Instagram, TikTok, YouTube, LinkedIn, X, Facebook, Pinterest, or Threads without changing your integration.

  • Facebook
  • X (Twitter)
  • Pinterest
  • Threads
  • YouTube
  • Instagram
  • LinkedIn
  • TikTok

Connect accounts once in PostWing (or via the accounts endpoints)

Call POST /posts with every account you want on that post

It is on your calendar. One key covers every platform PostWing supports.

questions

TikTok posting API FAQ

Yes. Upload a video and call POST /posts with your TikTok account id. Posts land on your PostWing calendar.

ready when you are

Schedule your next TikTok post from the API

Create an API key, connect TikTok, and schedule videos from your app.

7-day free trial · Cancel anytime