katto_publish_clip
Publishes a finished clip to a connected social account now or up to 7 days ahead, supporting YouTube, TikTok, LinkedIn, Instagram, Bluesky, Mastodon, and Threads.
Instructions
Publish a finished clip to one of the user's connected social accounts (YouTube, TikTok, LinkedIn, Instagram, Bluesky, Mastodon, Threads), now or at schedule_at (future, at most 7 days ahead). Call katto_list_connected_accounts first to see which platforms are connected (and not in need of a reconnect); katto_generate_post_text can draft the caption. This posts PUBLICLY on the user's behalf and cannot be undone from Katto: before calling, show the user the clip, the platform, the caption (and TikTok privacy level) and get their explicit confirmation; never publish on your own initiative or retry a publish blindly (each call is a new post). Requires a paid plan; scheduling requires Creator. If the platform is not connected you get an error with code platform_not_connected and a connect_url: ask the user to connect it in the Katto dashboard, then retry. TikTok requires privacy_level chosen by the user (no default) and disclosure of commercial content (brand_content / brand_organic); until Katto's TikTok app is audited, TikTok only accepts posts to a private account. Returns { status: 'published', result } or { status: 'scheduled', scheduled_post_id, scheduled_at }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Job id. | |
| tags | No | YouTube tags. | |
| title | No | YouTube video title (max 100 characters). Defaults to the caption, then the clip's title. | |
| caption | No | Post text. On YouTube it is used as the title and description unless title/description are given. | |
| platform | Yes | Where to post. The account must already be connected in the Katto dashboard. | |
| clip_index | Yes | 0-based clip index. | |
| description | No | YouTube description. Defaults to the caption. | |
| schedule_at | No | Optional ISO 8601 date-time to publish later instead of now (future, at most 7 days ahead). Scheduling is a Creator feature. | |
| disable_duet | No | TikTok only: turn duets off. | |
| brand_content | No | TikTok only: the post is a paid partnership (labelled 'Paid partnership'; cannot be SELF_ONLY). | |
| brand_organic | No | TikTok only: the post promotes the user's own business (labelled 'Promotional content'). | |
| privacy_level | No | TikTok only, REQUIRED for TikTok: who can see the post. Must be chosen by the user, never assumed. | |
| disable_stitch | No | TikTok only: turn stitches off. | |
| privacy_status | No | YouTube visibility (defaults to public). | |
| disable_comment | No | TikTok only: turn comments off. |