step by step
How to post to TikTok with the API
Create a key, connect TikTok, then schedule a post.
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/v2Docs
https://postwing.io/docsCall POST /posts with a caption, a time, your TikTok account id from GET /accounts, and media. Full field reference is in the API docs.
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.
visibilitypublic or private (default public)allow_commentsallow_duets, and allow_stitches togglesai_generatedand save_as_draft when you need themtitlefor 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.
- X (Twitter)
- Threads
- YouTube
- 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.