> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Post to TikTok

> What a TikTok account takes through the API: videos and photo posts, privacy and inbox drafts, media limits, deletes, comments and analytics.

A TikTok account has `platform` `tiktok`. It posts one video, or a photo post of up to 35 photos. Every TikTok post needs a video or a photo.

## What you can post

* A video, with a caption.
* A photo post: up to 35 photos, with a title and a caption. The first photo is the cover.
* Straight to the profile (`post_mode` `DIRECT_POST`, the default), or to the account's TikTok inbox (`MEDIA_UPLOAD`), where the person finishes the post in the TikTok app.

## Settings

Every key is optional. [Create a post](https://docs.postsyncer.com/api-reference/posts/create.md#platform-specific-settings) has the full list.

| Key | What it does |
| - | - |
| `privacy_level` | Who can see it: `PUBLIC_TO_EVERYONE` (the default), `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR` or `SELF_ONLY`. |
| `post_mode` | `DIRECT_POST` or `MEDIA_UPLOAD`, as above. |
| `title` | Photo posts only: a title of up to 90 characters. |
| `description` | TikTok's own caption, instead of the post's text. |
| `disable_comment`, `disable_duet`, `disable_stitch` | Turn off comments, Duets or Stitches. |
| `brand_content_toggle` | A paid partnership that promotes another brand. |
| `brand_organic_toggle` | The post promotes your own business. |
| `is_aigc` | Label the post as AI-generated. |
| `auto_add_music` | Photo posts: let TikTok add music. |
| `media` | This account's own media library ids, instead of the post's media. |

## Text

The caption takes 2,200 characters, and a photo post's title 90. PostSyncer cuts longer text to those limits when it's sent.

## Media

| | Limit |
| - | - |
| Video | 1, 1 second to 10 minutes, up to 4 GB |
| Photos | Up to 35, 20 MB each |
| Picture types | JPG, PNG, GIF, WebP |
| Video types | MP4, MOV, WebM |

* A post carries photos or a video, not both.
* Photos are converted to JPEG and scaled to fit 1080 × 1080 when TikTok needs it.
* A video outside TikTok's limits (smaller than 360 pixels or larger than 4096 on a side, outside 23 to 60 frames a second, or not H.264, H.265, VP8 or VP9) is re-encoded before it's sent. Its length can't be changed: a video of the wrong length is refused.
* Set a video's cover with `cover_image.video_cover_timestamp_ms` on the first item: the moment in the video, in milliseconds. TikTok takes a frame, never a picture. See [Video covers](https://docs.postsyncer.com/guides/media.md#video-covers).

## More than one item

TikTok has no threads and no first comment. The items are joined into one caption, with blank lines between them. A first comment item is left out: TikTok has nowhere to put it.

## Delete a post

TikTok can't delete posts through its API. Deleting the post in PostSyncer removes PostSyncer's copy only: delete it in TikTok too.

## Comments

PostSyncer doesn't read TikTok comments, so there are none to reply to, hide or delete. Hide answers `422` with `TikTok can't hide comments.` A comment delete answers `200` and changes nothing on TikTok.

## Analytics

TikTok gives `impressions`, `likes`, `comments` and `shares`. See [Read analytics](https://docs.postsyncer.com/guides/analytics.md).

## Example

A draft video that only the account can see, with Duets and Stitches off:

```json theme={null}
{
  "workspace_id": 4815,
  "schedule_type": "draft",
  "content": [
    {
      "text": "How we pour a rosetta.",
      "media": ["https://cdn.postsyncer.com/examples/rosetta-pour.mp4"],
      "cover_image": { "video_cover_timestamp_ms": 2500 }
    }
  ],
  "accounts": [
    {
      "id": 16239,
      "settings": {
        "privacy_level": "SELF_ONLY",
        "disable_duet": true,
        "disable_stitch": true
      }
    }
  ]
}
```

## Related

> [card] [Add media to posts](https://docs.postsyncer.com/guides/media.md)
>
> Links, uploads and video covers.

> [card] [Compare the 12 networks](https://docs.postsyncer.com/platforms/overview.md)
>
> How TikTok differs from the other networks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.