# Ayrshare Post To TikTok

Blocks for posting videos and image slideshows to TikTok using the Ayrshare social media management API.

## Post To Tik Tok

### What it is

Post to TikTok using Ayrshare

### How it works

This block uses Ayrshare's API to publish content to TikTok. It supports video posts and image slideshows (up to 35 images), with extensive options for content labeling including AI-generated disclosure, branded content, and brand organic content tags.

The block connects to TikTok's API through Ayrshare with controls for visibility, duet/stitch permissions, comment settings, auto-music, and thumbnail selection. Videos can be posted as drafts for final review, and scheduled for future publishing.

### Inputs

| Input                | Description                                                                                                                                                                                                                                                     | Type                                 | Required |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ | -------- |
| post                 | The post text (max 2,200 chars, empty string allowed). Use @handle to mention users. Line breaks will be ignored.                                                                                                                                               | str                                  | Yes      |
| media\_urls          | Required media URLs. Either 1 video OR up to 35 images (JPG/JPEG/WEBP only). Cannot mix video and images.                                                                                                                                                       | List\[str]                           | No       |
| is\_video            | Whether the media is a video                                                                                                                                                                                                                                    | bool                                 | No       |
| schedule\_date       | UTC datetime for scheduling (YYYY-MM-DDThh:mm:ssZ)                                                                                                                                                                                                              | str (date-time)                      | No       |
| disable\_comments    | Disable comments on the published post                                                                                                                                                                                                                          | bool                                 | No       |
| shorten\_links       | Whether to shorten links                                                                                                                                                                                                                                        | bool                                 | No       |
| unsplash             | Unsplash image configuration                                                                                                                                                                                                                                    | str                                  | No       |
| requires\_approval   | Whether to enable approval workflow                                                                                                                                                                                                                             | bool                                 | No       |
| random\_post         | Whether to generate random post text                                                                                                                                                                                                                            | bool                                 | No       |
| random\_media\_url   | Whether to generate random media                                                                                                                                                                                                                                | bool                                 | No       |
| notes                | Additional notes for the post                                                                                                                                                                                                                                   | str                                  | No       |
| auto\_add\_music     | Whether to automatically add recommended music to the post. If you set this field to true, you can change the music later in the TikTok app.                                                                                                                    | bool                                 | No       |
| disable\_duet        | Disable duets on published video (video only)                                                                                                                                                                                                                   | bool                                 | No       |
| disable\_stitch      | Disable stitch on published video (video only)                                                                                                                                                                                                                  | bool                                 | No       |
| is\_ai\_generated    | If you enable the toggle, your video will be labeled as “Creator labeled as AI-generated” once posted and can’t be changed. The “Creator labeled as AI-generated” label indicates that the content was completely AI-generated or significantly edited with AI. | bool                                 | No       |
| is\_branded\_content | Whether to enable the Branded Content toggle. If this field is set to true, the video will be labeled as Branded Content, indicating you are in a paid partnership with a brand. A “Paid partnership” label will be attached to the video.                      | bool                                 | No       |
| is\_brand\_organic   | Whether to enable the Brand Organic Content toggle. If this field is set to true, the video will be labeled as Brand Organic Content, indicating you are promoting yourself or your own business. A “Promotional content” label will be attached to the video.  | bool                                 | No       |
| image\_cover\_index  | Index of image to use as cover (0-based, image posts only)                                                                                                                                                                                                      | int                                  | No       |
| title                | Title for image posts                                                                                                                                                                                                                                           | str                                  | No       |
| thumbnail\_offset    | Video thumbnail frame offset in milliseconds (video only)                                                                                                                                                                                                       | int                                  | No       |
| visibility           | Post visibility: 'public', 'private', 'followers', or 'friends'                                                                                                                                                                                                 | "public" \| "private" \| "followers" | No       |
| draft                | Create as draft post (video only)                                                                                                                                                                                                                               | bool                                 | No       |

### Outputs

| Output       | Description                           | Type         |
| ------------ | ------------------------------------- | ------------ |
| error        | Error message if the operation failed | str          |
| post\_result | The result of the post                | PostResponse |
| post         | The result of the post                | PostIds      |

### Possible use case

**Creator Content Pipeline**: Automate video uploads with proper AI disclosure labels and visibility settings for content creators.

**Brand Campaigns**: Publish branded content with proper disclosure labels to maintain FTC compliance and platform guidelines.

**Image Slideshow Posts**: Create TikTok slideshows from product images or photo series with automatic cover selection.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agpt.co/docs/integrations/block-integrations/post_to_tiktok.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
