TikTok Content Posting API
Publish TikTok videos and photo posts from your app, with privacy settings handled the way TikTok asks.
- Video and photo posts
- Privacy, comments, Duet and Stitch settings per post
- Creators connect through TikTok's login
- A webhook when TikTok finishes processing
const pk = new Postkey(process.env.POSTKEY_API_KEY);
await pk.posts.create({
content: "Packing 100 orders in under an hour #smallbusiness",
mediaItems: [
{
type: "video",
url: "https://cdn.example.com/packing.mp4"
}
],
platforms: [
{
platform: "tiktok",
accountId: "acc_tt_321",
platformSpecificData: {
privacyLevel: "PUBLIC_TO_EVERYONE",
disableComment: false,
disableDuet: false,
disableStitch: false
}
}
],
publishNow: true
});- TikTokprocessing
TikTok is processing it · webhook on finish
Your first TikTok post in three steps
- 1
Connect TikTok
Your customer signs in through TikTok's own login. You get an account ID, never a password.
- 2
Get the account id
List connected accounts. The id of the new account is the accountId you post with.
- 3
Post
Send the post to /v1/posts with that accountId. The TikTok result comes back in the response and by webhook.
Every TikTok format, one endpoint
Pick a format to see the exact request and what comes back. Options that only make sense on TikTok sit under "tiktok".
A video post. TikTok processes it before it goes live.
1POST https://api.postkey.dev/v1/posts2x-access-key: pk_live_…3Content-Type: application/json4 5{6 "content": "Packing 100 orders in under an hour #smallbusiness",7 "mediaItems": [8 {9 "type": "video",10 "url": "https://cdn.example.com/packing.mp4"11 }12 ],13 "platforms": [14 {15 "platform": "tiktok",16 "accountId": "acc_tt_321",17 "platformSpecificData": {18 "privacyLevel": "PUBLIC_TO_EVERYONE",19 "disableComment": false,20 "disableDuet": false,21 "disableStitch": false22 }23 }24 ],25 "publishNow": true26}202 · publishing
TikTok processes this first. The final result arrives by webhook.
{
"success": true,
"postId": "post_3k9d2",
"status": "publishing",
"platforms": [
{
"platform": "tiktok",
"accountId": "acc_tt_321",
"success": true
}
]
}Everything you need for TikTok posting
Checked against TikTok's rules
Before anything is sent, Postkey checks it against TikTok's published limits:
Video and photo posts
Send one video or a set of images. The rest of the call stays the same.
Privacy the TikTok way
TikTok wants the creator to choose who sees each post from the options it allows for that account. Postkey returns those options so your UI can show them.
Interaction settings
Turn comments, Duet and Stitch on or off per post, using the settings TikTok exposes.
Processing tracked
TikTok processes uploads before publishing. You get a webhook when the post is up, or the reason it isn't.
No domain setup
TikTok pulls photo posts from a verified domain. Upload to Postkey and it serves the files, so you don't verify your own.
Also for TikTok
Built in
Connect, publish, get told
Your users connect TikTok through a connect link. If TikTok fails inside a multi-network post, the others still go out and the TikTok credits come back.
Works with your stack
Your code
Node and Python SDKs with the same calls, or plain REST from anything that speaks HTTP.
- Node
- Python
- {}REST
No-code tools
Call the REST API from an HTTP step in n8n, Make or Zapier. One request posts to every network.
- n8n
- Make
- Zapier
AI agents & MCP
The MCP server lets Claude, Cursor and other agent tools publish and schedule posts, and read the results.
- MCP server
Beyond TikTok
Same request shape on every platform. Add an account ID and the post goes there too.
- X Posting APIText · Image · Video · Thread
- Instagram Posting APIFeed post · Reel · Story · Carousel
- Facebook Posting APIText · Photo · Video
- You're hereTikTok Posting APIVideo · Photo
- LinkedIn Posting APIText · Image · Document
- YouTube Posting APIVideo
- YouTube Shorts Posting APIShort
- Pinterest Posting APIPin
- Google Business Posting APIUpdate post · Offer · Event
TikTok posting questions
Something not here? Email hello@postkey.dev.
What can I post to TikTok?
Videos and photo posts. Both go through the same endpoint. The media you send decides which.
Why do I need to show privacy options?
TikTok's sharing guidelines ask apps to let the creator choose who can see each post, from the choices TikTok allows for that account. Postkey gives you that list per account.
Why would a TikTok post end up private?
TikTok keeps posts from apps that haven't passed its audit private. A public post also needs the creator's privacy choice to allow it.
Why does the response say 'processing'?
TikTok processes uploads before they go live. The call returns right away and a webhook follows with the result.
Can I send the same video to Reels and Shorts too?
Yes. Add the Instagram and YouTube account IDs to the same request. Each platform gets its own result.
Can I schedule TikTok posts instead?
Yes. Add scheduledFor to the same request. See the TikTok Scheduling API page for details.
Post to TikTok for every customer.
Get a key, connect an account, send the request above.
Free while it's early. Read the docs