TikTok

The TikTok API developers actually want

Publish videos to TikTok with full caption, disclosure, and content interaction control through a clean REST API. SocialAPI.ai wraps TikTok's v2 API, handles token auto-refresh, and normalizes the data into the same schema you use for every other platform.

Free tier available
Instant API key
MCP server included

What you can do with TikTok.

Supported

Publishing

Upload and publish videos with captions, disclosure settings, and content interaction controls.

Supported

Webhooks

Receive real-time notifications for video upload and publish status changes. TikTok does not expose comment or mention webhook events.

See it in action.

Publish a video to TikTok

api.social-api.ai
1# 1. Upload media
2curl -X POST https://api.social-api.ai/v1/media/upload \
3  -H "Authorization: Bearer <your-api-key>" \
4  -F "file=@video.mp4"
5
6# 2. Create the post
7curl -X POST https://api.social-api.ai/v1/posts \
8  -H "Authorization: Bearer <your-api-key>" \
9  -H "Content-Type: application/json" \
10  -d '{
11    "account_id": "<account-id>",
12    "platforms": ["tiktok"],
13    "text": "Check out this tutorial! #coding #devlife",
14    "media_ids": ["<media-id>"],
15    "platform_options": {
16      "tiktok": {
17        "disclosure": { "branded_content": false, "paid_partnership": false }
18      }
19    }
20  }' | jq

Create a post with a video upload, caption, and required disclosure settings. SocialAPI.ai handles TikTok's chunked upload flow and status polling.

Why developers love TikTok on SocialAPI.ai

1

Video publishing with disclosures

Publish videos to TikTok with full control over captions, disclosure settings, and content interaction toggles. TikTok requires branded content and paid partnership declarations, and SocialAPI.ai validates these before submission, returning clear errors if any required fields are missing.

2

Automatic token refresh

TikTok access tokens expire frequently. SocialAPI.ai monitors token validity, automatically refreshes expired tokens using the stored refresh token, and retries failed requests transparently. You never need to handle TikTok's OAuth token lifecycle in your application code.

3

Webhook event delivery

Receive real-time notifications when video uploads complete, fail, or finish publishing. SocialAPI.ai validates TikTok webhook signatures and delivers events to your configured endpoints with exponential-backoff retries and delivery status tracking. TikTok does not expose comment or mention webhook events.

FAQ

Frequently asked questions.

Can I read TikTok DMs through SocialAPI.ai?

Not yet. TikTok offers a Business Messaging API in beta, but it is gated by partner approval and excludes US, EU, UK, and Swiss markets. SocialAPI.ai does not currently expose TikTok DMs. We will add support once TikTok opens broader access.

What video formats does TikTok publishing support?

TikTok accepts MP4 and WebM video files. Videos should be between 1 second and 10 minutes long, with a maximum file size of 4 GB. SocialAPI.ai validates format and size before initiating the upload to TikTok's servers.

How does SocialAPI.ai handle TikTok token expiration?

TikTok access tokens expire after a short period. SocialAPI.ai stores encrypted refresh tokens and automatically refreshes access tokens when they expire. If a request fails due to an expired token, the API refreshes it and retries the request transparently.

Do I need a TikTok Developer account to use the API?

You need a TikTok account that can be connected via OAuth. SocialAPI.ai handles the OAuth flow using our registered TikTok application credentials. You do not need to register your own TikTok app on the Developer Portal.

What are TikTok disclosure settings?

TikTok requires every API-published video to declare whether it contains branded content or is a paid partnership. SocialAPI.ai accepts these as part of the platform_options when creating a post. Both fields default to false but must be explicitly provided.

Get started today

Ready to unify your social interactions?

Free tier available · No credit card required · Ships with MCP server