Post settings
A post's settings object holds its TikTok options. Every setting is optional. Left out, TikTok's usual behavior applies: public, comments, duets and stitches on, no disclosure, no music.
You send settings with POST /posts and PATCH /posts/{postId}, and GET /posts gives each post's settings back as saved (null for none). The field list, types and ranges are in the API reference.
{
"accountId": "j971x2c4ajrq0w8sd5e8fxz3a57v2k8m",
"kind": "video",
"caption": "Leg day, no excuses #fitness #gym",
"mediaRefs": ["https://media.example.com/uploads/7f3a9c/leg-day.mp4"],
"scheduledFor": "2026-12-02T15:00:00Z",
"settings": {
"allowDuets": false,
"brandedContent": "your_brand",
"coverAtMs": 1500,
"music": { "trackId": "7312345678901234567", "volume": 40, "videoSoundVolume": 80 },
"location": { "id": "1234567890", "name": "Barcelona" }
}
}Which setting fits which post
| Setting | Video | Photo | What it does |
|---|---|---|---|
privacy | everyone only | Yes | Who can see the post: everyone, friends, followers or only_me |
allowComments | Yes | Yes | false turns comments off |
allowDuets | Yes | No | false turns duets off |
allowStitches | Yes | No | false turns stitches off |
brandedContent | Yes | Yes | The commercial content disclosure |
aiGenerated | Yes | No | true labels the video as made with AI |
coverAtMs | Yes | No | The video frame to use as the cover |
coverImageRef | Yes | No | A custom cover image |
coverPhotoIndex | No | Yes | Which photo is the cover |
music | Yes | Track only | A track from TikTok's commercial music |
autoMusic | No | Yes | true lets TikTok add a recommended track |
location | Yes | No | A place to tag |
adsOnly | Yes | No | true keeps the video off the profile, for use as an ad |
A setting that doesn't fit the post is refused: setting_videos_only for a video setting on a photo post, setting_photos_only for a photo setting on a video post, and ai_label_photo for aiGenerated on photos.
The flags aiGenerated, autoMusic and adsOnly set to false are the same as leaving them out.
Drafts take no settings
A post with toDrafts: true goes to the account's TikTok drafts, where TikTok ignores every post setting. So a draft with any setting is refused with drafts_no_settings. Add the settings, and the caption, in the TikTok app when you finish the draft.
Check what the account allows
TikTok lets each creator turn off comments, duets and stitches, and limits who can see photo posts. Ask before you choose:
curl "https://api.tiktornado.com/api/v1/accounts/j971x2c4ajrq0w8sd5e8fxz3a57v2k8m/post-options?kind=video" \
-H "Authorization: Bearer $TIKTORNADO_API_KEY"{
"kind": "video",
"privacy": ["everyone"],
"commentsAllowed": true,
"duetsAllowed": true,
"stitchesAllowed": false,
"maxVideoSeconds": 600,
"canPostNow": true
}tiktornado sends the settings you ask for and doesn't change them to fit. If stitchesAllowed is false, send allowStitches: false yourself. On a photo post, pick a privacy from the privacy list. canPostNow: false means TikTok won't take another post from the account right now, for example at its daily limit.
The answer comes from TikTok live, so it can change from one call to the next.
Music
music adds a track from TikTok's commercial music library. Get the track list for the account first:
curl "https://api.tiktornado.com/api/v1/accounts/j971x2c4ajrq0w8sd5e8fxz3a57v2k8m/music?country=US" \
-H "Authorization: Bearer $TIKTORNADO_API_KEY"{
"tracks": [
{
"id": "7312345678901234567",
"name": "Golden Hour",
"artist": "The Lanterns",
"durationSec": 15,
"rank": 1,
"genres": ["pop"],
"previewUrl": "https://audio.example.com/previews/golden-hour.mp3",
"coverUrl": "https://images.example.com/covers/golden-hour.jpeg"
}
]
}The list is TikTok's top 100 trending commercial tracks, rank 1 first. country is two capital letters. Left out, it is the account's own country, else TikTok's global chart. Pass a track's id as music.trackId.
| Field | Posts | Meaning |
|---|---|---|
trackId | Video and photo | The track's id. Required |
volume | Video | The track's volume, 0 to 100. 50 if left out |
videoSoundVolume | Video | The video's own sound under the track, 0 to 100. 50 if left out |
startMs | Video | Where in the track to start, in milliseconds. 0 if left out |
endMs | Video | Where in the track to stop, in milliseconds, after startMs. The video's end if left out |
Both volumes default to 50, the TikTok app's own default, so a track never goes out silent over a muted video. A photo post takes the track alone: any of the other four fields on a photo post is setting_videos_only.
If TikTok won't use a track when the post goes out, the post fails with track_unavailable. Pick another track and edit the post.
Automatic music
On photo posts, autoMusic: true lets TikTok pick a recommended track. It can't go with music (music_conflict), and not with branded content, where TikTok allows only its commercial library (auto_music_branded).
Cover
A video's cover is a frame of the video or an image of your own, never both:
coverAtMs: the frame, in milliseconds from the start, 0 to 600000.coverImageRef: a JPEG, PNG or WebP up to 20 MB. Use amediaReffromPOST /uploads, or a publichttpslink to the image. It is checked like the post's media, andGET /postsgives it back exactly as you sent it.
A photo post's cover is one of its photos: coverPhotoIndex, 0 for the first. It must be one of the post's photos, so after an edit that removes photos it must still point at one.
Sending both coverAtMs and coverImageRef is invalid_post_setting.
Privacy
privacy is for photo posts: everyone, friends, followers or only_me. Videos are always public: a video may send privacy: "everyone", and any other value is setting_photos_only.
Comments, duets and stitches
allowComments, allowDuets and allowStitches are on unless you send false. Duets and stitches are for videos only.
Branded content
brandedContent is TikTok's commercial content disclosure, for videos and photos:
| Value | Meaning |
|---|---|
none | No disclosure. The same as leaving it out |
your_brand | The post promotes your own business |
paid_partnership | The post promotes another brand |
both | Both at once |
Branded content can't be only_me (branded_private) and can't use automatic music (auto_music_branded).
AI-generated label
aiGenerated: true labels a video as made with AI. Photo posts can't carry the label through the API (ai_label_photo): send the photos to drafts and add the label in the TikTok app.
Location
location tags a place on a video. Search for it first:
curl "https://api.tiktornado.com/api/v1/accounts/j971x2c4ajrq0w8sd5e8fxz3a57v2k8m/locations?query=Barcelona" \
-H "Authorization: Bearer $TIKTORNADO_API_KEY"{
"locations": [
{ "id": "1234567890", "name": "Barcelona", "address": "Catalonia, Spain" },
{ "id": "1234567891", "name": "Barceloneta Beach", "address": null }
]
}The search answers at most 20 places, best match first. query is 1 to 100 characters after spaces at either end are removed. Send a place's id and name as settings.location.
Ads only
adsOnly: true keeps a video off the account's profile, so it can be used as an ad.
Changing settings later
PATCH /posts/{postId} with settings replaces the whole set: a setting you leave out goes back to TikTok's usual behavior. settings: null clears every setting. See Edit a post.
{
"settings": { "allowComments": false, "aiGenerated": true }
}The order of the checks
Settings are checked before anything is saved, and the first problem is answered:
- Any setting on a post sent to drafts:
drafts_no_settings. - A setting for the other kind of post:
ai_label_photo,setting_videos_onlyorsetting_photos_only. - Settings that can't go together:
music_conflict,auto_music_branded,branded_private. - Values out of range:
invalid_post_setting.
An unknown field anywhere in settings, inside music and location too, a null, or a value of the wrong type is invalid_request. Every text value is at most 2,048 characters.