Skip to content

TikTok OAuth setup

To upload videos to TikTok from the app, you need your own TikTok Client Key. This is a one-time setup.

1. Register as a TikTok developer

Go to developers.tiktok.com.

Sign up with your TikTok account, or log in if you already have a developer account.

2. Create an app

  1. Go to Manage apps in the dashboard.
  2. Click Create new app.
  3. Fill in the app details:
    • App name: AI Music Video Generator
    • Description: short description, e.g. “Desktop app that uploads music videos to TikTok.”
    • Category: Entertainment

3. Enable Content Posting API

  1. In your app, go to Add products.
  2. Find Content Posting API and click Add.
  3. Request the following scopes:
    • user.info.basic
    • video.upload
    • video.publish (only if you want “direct” post mode — most users can skip this)

4. Set the redirect URI

  1. Go to App settings.
  2. Under Redirect URI, add http://localhost.
  3. Save.

5. Submit for review

  1. Fill in any remaining required fields (privacy policy URL, terms URL — you can link to a simple GitHub README).
  2. Click Submit for review.

TikTok reviews apps manually. Expect several days for a response.

6. Copy the Client Key

Once approved, go to your app’s main page and copy the Client Key — it looks like awxxxxxxxxxxxxxxxx.

Copying the TikTok Client Key

7. Add the Client Key to the app

  1. Open AI Music Video Generator.
  2. Go to Settings → Connections → TikTok.
  3. Paste the Client Key into the Client Key field.
  4. Click Save.

8. Connect your account

Click Connect TikTok. See Connecting TikTok for the rest of the flow.

Notes

  • Only the Client Key is needed — no secrets. The app uses the PKCE auth flow.
  • Start with “Inbox” post mode. It’s easier to get approved and lets you review each video before it goes live.
  • Direct mode (videos go live immediately) requires additional TikTok approval of the video.publish scope.