API Reference

TikTok API

Post videos, schedule content, and manage multiple TikTok accounts with a single API call.

Quick Start

Get started in 3 steps

1

Get API Key

Sign up for free and get your API key in seconds.

2

Connect Account

Use our OAuth flow to connect TikTok accounts.

3

Start Posting

Make API calls to post content to TikTok.

Post a TikTok video
JavaScript
const response = await fetch('https://getlate.dev/api/v1/posts', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    content: 'Check out this tutorial! #coding #api',
    mediaItems: [{ type: 'video', url: 'https://example.com/video.mp4' }],
    platforms: [{
      platform: 'tiktok',
      accountId: 'acc_abc123',
      platformSpecificData: {
        tiktokSettings: {
          privacy_level: 'PUBLIC_TO_EVERYONE',
          allow_comment: true,
          allow_duet: true,
          allow_stitch: true
        }
      }
    }],
    scheduledFor: '2025-01-15T14:00:00Z'
  })
});

const post = await response.json();
console.log(post.post._id); // '65f1c0a9e2b5af0012ab34cd'

Endpoints

TikTok Endpoints

POST/v1/posts

Create or schedule a TikTok video post

GET/v1/posts/{id}

Get status and details of a TikTok post

DELETE/v1/posts/{id}

Cancel a scheduled TikTok post

GET/v1/profiles

List all connected TikTok accounts

Media Specs

Media Requirements

TypeFormatMax SizeNotes
VideoMP4, MOV, WebM287.6 MB3 sec - 10 min duration
Aspect Ratio9:16 recommended1080x1920 pxVertical video performs best
AudioAAC128kbps+Required for video posts

Late automatically transcodes and optimizes media for TikTok's requirements.

Rate Limits

API Limits

TikTok's Content Posting API has strict rate limits. Late automatically queues and retries requests, handling backoff logic so you don't have to.

Late handles all rate limiting automatically. We queue and retry requests as needed.

Capabilities

Features

  • Post videos to TikTok Creator and Business accounts
  • Schedule posts for optimal engagement times
  • Automatic video transcoding to TikTok specs
  • Multi-account management from one API
  • Webhook notifications for post status
  • Caption and hashtag support
  • Draft mode for content approval workflows

Response

Response Example

Response
200 OK
{
  "post": {
    "_id": "65f1c0a9e2b5af0012ab34cd",
    "status": "scheduled",
    "content": "Check out this tutorial! #coding #api",
    "scheduledFor": "2025-01-15T14:00:00Z",
    "platforms": [{
      "platform": "tiktok",
      "accountId": { "_id": "acc_abc123", "username": "@yourhandle" },
      "status": "pending"
    }],
    "createdAt": "2025-01-10T10:30:00Z"
  },
  "message": "Post scheduled successfully"
}

Start building with TikTok API

Skip the TikTok Content Posting API complexity. Late handles OAuth, video encoding, and rate limits so you can ship faster.

Free tier available • No credit card required • 99.97% uptime