Skip to main content
MagicPost posts to TikTok with the Content Posting API in Direct Post mode. You register one app in TikTok for Developers, and each creator connects their own TikTok account through it.

What you need

  • A TikTok for Developers account.
  • Your site served over HTTPS.
  • For photo posts, a site that TikTok can reach from the internet, and a verified domain (see below).
  • Access to Admin → Publishing → Platforms.

Register the app on TikTok

1

Create the app

Create an app in TikTok for Developers and fill in its details, including links to your terms and privacy policy.
2

Get the redirect URI from MagicPost

In MagicPost, go to Admin → Publishing → Platforms and click Add credentials on the TikTok card. Under What to register, copy the Redirect URI:
3

Add Login Kit

In the TikTok app, add Login Kit and register the redirect URI for the web.
4

Add the Content Posting API

Add the Content Posting API, switch on Direct Post, and add each scope listed in the table below.
5

Verify your site address

TikTok downloads photo posts from your site. Verify the site’s address under URL properties in the app.
6

Submit the app for review

Submit the app for review, then copy the Client key and the Client secret.
7

Store them in MagicPost

Paste the key into Client ID and the secret into Client secret. The hint under the field reminds you that TikTok calls it Client key. Tick Available to users, click Save, then Run checks.

Permissions MagicPost asks for

Until TikTok audits the app, everything it posts is visible only to the account that posted it, and at most 5 accounts a day can post through it. Apply for the audit before your users rely on TikTok.

Connect a TikTok account

1

Open Channels

Under Publishing in the sidebar, click Channels.
2

Add the account

In Add a channel, click TikTok. Sign in on TikTok and approve access.
3

Confirm

You return to Channels with one Profile channel. Its handle comes from TikTok.
At connection time MagicPost asks TikTok what the creator may currently do: which audiences are allowed, whether comments, Duet and Stitch are switched off, and the longest video allowed. The composer offers only those choices. TikTok answers again before every post and on every connection check, and MagicPost keeps the latest answer.

What you can publish

TikTok has two post types: Video and Photo. The video length is also capped by the creator’s own limit from TikTok. The connection check shows it as Videos up to N minutes long. Both post types show this notice in the composer, linked to TikTok’s page: By posting, you agree to TikTok’s Music Usage Confirmation.

Video options

Set these under Settings for the channel in the composer.

Photo options

MagicPost switches Made with AI on by itself when any attached media was created with MagicPost’s AI image or video tools.

How media is delivered

  • A video is uploaded as bytes in chunks of up to 10 MB. Your site does not need to be reachable from the internet for this, and an upload that is cut short carries on from the last chunk TikTok confirmed.
  • A photo post is different. TikTok downloads the pictures itself from a web address, so the address must be reachable from the internet and on a domain verified in the TikTok app. When it is not, the post fails with a message that names the address.

Connection check

TikTok’s own check answers for the account as it stands right now, daily caps included.

Reconnecting

TikTok access tokens renew with a refresh token. If TikTok reports that access was removed, the channel becomes Expired and the owner is notified. Reconnect it from Channels. See Channel states.

Analytics

See Analytics.

Common errors

The app is unaudited. Choose Only me under Who can view, or complete TikTok’s app audit.
Until the audit passes, only a few accounts a day can post. The post is tried again later.
The post is retried about an hour later and goes out once there is room again.
Verify the site under URL properties in the TikTok developer portal.
The site runs on an address only your own machine can reach, such as localhost. Photo posts need a public address.
TikTok no longer allows the chosen audience for this account. Pick another under Who can view.
Paid partnership needs a wider audience than Only me.
The creator’s own limit is shorter than the general 10 minutes. Trim the video.
Use an MP4 or MOV with H.264 video. TikTok takes videos between 23 and 60 frames per second, and pictures between 360 and 4096 pixels on each side.
Edit the caption and try again.
TikTok no longer accepts the connection. Reconnect the channel from Channels.
Server errors and rate limits are retried automatically. See Failed posts.