Skip to main content
Connecting the TikTok Business Messaging channel to your portal allows your customers to manage customer chat conversations, receive, and reply to direct messages right from the unified Inbox.

Prerequisites

Before starting the setup, ensure you have:
  • A portal configured with a custom domain, running HTTPS protocol, and publicly accessible.
  • A TikTok Business Account registered in a supported region (personal TikTok accounts are not supported).
  • Direct messages set to Everyone in your TikTok app settings.
  • A TikTok Developer Account created at developers.tiktok.com.
  • Super Admin access to your portal to set up Credentials.
The TikTok Business Messaging API is region-restricted. It is currently unavailable for accounts registered in the European Economic Area (EEA), Switzerland, or the United Kingdom.

Step 1: Create a TikTok Developer Account

To get started, you must register a developer account on TikTok to create and manage the connection app.
1

Register as a developer

Go to developers.tiktok.com and sign up.
2

Verify account

Verify your email address and accept the Terms of Service to complete the registration.

Step 2: Register Your App

Registering your application in the developer portal provides you with the key credentials (App ID and App Secret) needed to securely link the portal to TikTok.
1

Create a new app

Navigate to business-api.tiktok.com/portal/apps and click Create App.
Tiktok Create App
2

Fill in app details

Provide the required details:
  • App Name: e.g., Your Brand - ChatconnectX
  • App Description: Explain your messaging and support use case.
  • App Icon: Upload your company logo.
  • Terms of Service URL: Your company’s ToS page.
  • Privacy Policy URL: Your company’s privacy policy page.
3

Copy App credentials

Once the app is created, copy the App ID (Client Key) and App Secret (Client Secret). You will need these to configure the Admin Portal.

Step 3: Apply for Business Messaging API Access

TikTok requires you to request access to the messaging endpoints. This is a security review step to ensure data is handled safely.
1

Request Business Messaging product

Open your app in the TikTok Developer Portal and find the Business Messaging API product.
2

Submit the access application

Fill out the application form with:
  • Your use case (e.g., providing automated customer support).
  • Details on how you handle user data.
  • Your business/organization details.
3

Wait for review

TikTok reviews the request, which typically takes a few business days. You cannot proceed with the integration until this is approved.

Step 4: Configure Credentials in the Admin Portal

After obtaining the security credentials from TikTok, save these settings in the Admin Portal.
1

Navigate to Platform Credentials

Log in to your portal as a Super Admin, then navigate to:
https://app.chatconnectx.com/manage/platform-credentials
2

Open the TikTok configuration

Click the Edit button on the TikTok card to open the configuration modal and fill in your Client ID (App ID) and App Secret.
Chatbotx Super Admin Tikotk Edit
3

Save

Click Save. The system will display a Webhook URL which will be used in Step 5.
Tiktok Create App

Step 5: Configure App Permissions and Redirect URLs

Once approved, you need to enable the specific account permissions and configure where TikTok redirects users after they log in (Redirect URL).
1

Enable permissions

Ensure the TikTok Accounts permission scope is enabled in your app settings.
Tiktok Accounts Permission
2

Add redirect URL

Set the Redirect URL to:
https://app.chatconnectx.com/integrations/tiktok/webhook

User Connection Guide

After completing the app configuration on the TikTok Developer Portal and entering the Credentials in the Admin Portal, your customers can connect their TikTok Business accounts. For step-by-step instructions, see the TikTok Connection Guide.

Troubleshooting

Verify that you have enabled the TikTok feature for your account in the Super Admin panel, and confirm that the environment variables are saved and the server has been restarted.
Check that the authorization redirect URL in your TikTok Developer Portal exactly matches your domain (https://app.chatconnectx.com/tiktok/callback). Ensure that the Business Messaging API product is marked as approved.
Run Tiktok::AuthClient.webhook_callback in the Rails console to verify that the webhook is registered. Check that your server can receive public HTTPS requests and that your business account is registered in a supported region.
Ensure you are replying within the standard 48-hour window. Verify the channel is not requesting reauthorization due to expired access tokens.
Refresh tokens expire after 30 days of inactivity. Go to Settings: Inboxes, select your TikTok inbox, click Reauthorize, and complete the OAuth flow again to restore the connection.