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
- Go to Manage apps in the dashboard.
- Click Create new app.
- 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
- In your app, go to Add products.
- Find Content Posting API and click Add.
- Request the following scopes:
user.info.basicvideo.uploadvideo.publish(only if you want “direct” post mode — most users can skip this)
4. Set the redirect URI
- Go to App settings.
- Under Redirect URI, add
http://localhost. - Save.
5. Submit for review
- Fill in any remaining required fields (privacy policy URL, terms URL — you can link to a simple GitHub README).
- 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.

7. Add the Client Key to the app
- Open AI Music Video Generator.
- Go to Settings → Connections → TikTok.
- Paste the Client Key into the Client Key field.
- 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.publishscope.