TikTok API for developers and AI agents

TikTok publishing without rebuilding account connection, creator readiness checks, media validation, queues, and webhook status events.

No credit card required

import { KavenioClient } from "@kavenio/sdk";

const kavenio = new KavenioClient({
  authToken: process.env.KAVENIO_API_KEY,
});

// Send your user to this URL to connect their TikTok account.
const { authorizationUrl } = await kavenio.connect.begin({
  platform: "tiktok",
});

// Publish a video to the connected TikTok account.
await kavenio.posts.create({
  content: "Launch week in 30 seconds.",
  publishNow: true,
  mediaItems: [{ type: "video", url: "https://cdn.example.com/launch.mp4" }],
  platforms: [
    {
      platform: "tiktok",
      accountId: "acct_tiktok_123",
      platformSpecificData: {
        privacyLevel: "PUBLIC_TO_EVERYONE",
        allowComment: true,
        contentPreviewConfirmed: true,
        expressConsentGiven: true,
      },
    },
  ],
});

How it works

Connect the account, publish to a selected TikTok profile, and run the workflow with REST, the CLI, or the SDK.
  1. kavenio.connect.begin(...)

    Create a TikTok connect URL and send the user through authorization for the account they want to publish from.

  2. kavenio.posts.create(...)

    Publish now or schedule a TikTok video, draft upload, or photo carousel for the selected connected account.

  3. kavenio.webhooks.create(...)

    Trigger your automation when TikTok publishing succeeds, fails, or needs attention instead of polling for state.

Formats

Publish the TikTok formats your product needs

Let customers publish videos, photo carousels, drafts, privacy settings, and interaction controls without building a separate TikTok-only path.
Video posts
Photo carousels
Draft uploads
Privacy levels
Comment controls
Cover settings
Developer workflow

Build TikTok publishing without provider plumbing

Keep your product focused on the customer workflow while the API handles account connection, media checks, publish rules, and status changes.

Creator connection and readiness

Send users through TikTok connection once and use the connected account with the creator privacy options TikTok returns.

Direct publish requirements

Pass the privacy level, preview confirmation, and consent flags your product collected before the provider call runs.

Video and photo media rules

Publish one video, draft upload, or photo carousel with platform-specific media validation before TikTok receives the request.

Queue and webhooks

Schedule posts, publish now, and trigger automation from status events instead of polling provider APIs.

App keys

Bring your own TikTok app when you need control

Use the Kavenio-managed TikTok app to get started, or connect through your own TikTok app when your team owns approvals, branding, and policy setup.

Use the Kavenio-managed TikTok app

Start testing TikTok connection and publishing without configuring your own TikTok app first.

Bring your own TikTok app

Use your TikTok app credentials when your team owns approvals, branding, and policy setup.

Build the TikTok publishing workflow once

Stop rebuilding account connection, creator readiness checks, media validation, direct-publish rules, retries, and status events for every product surface.

Reuse the same connect and publishing workflow for the next supported platform.

TikTok API questions

Practical details for building TikTok publishing into your product.

Can I publish TikTok videos through Kavenio?

Yes. Connect a TikTok account, pass one HTTPS video URL, and publish through the same posts API used for other platforms.

Can I publish TikTok photo carousels?

Yes. Use TikTok photo media, provide the photo cover index, and publish the carousel through the TikTok platform-specific data.

What does direct publish require?

TikTok direct publish requires a privacy level plus preview confirmation and express consent flags in the request.

Can I control comments, duet, and stitch settings?

Yes. Video publishing accepts TikTok-specific comment, duet, and stitch options when your product exposes those controls.