Authentication
Initiate Authorization
GET /auth/tiktok
Initiate TikTok Shop authorization flow
Parameters
The ID of the user
Response
Redirects to TikTok auth page or error page with the following URL structure:Authorization Callback
GET /tiktok/callback
Callback endpoint for TikTok Shop authorization
Parameters
Authorization code from TikTok
State parameter containing userId and random string for security verification
Optional error message from TikTok if authorization fails
Response
Redirects to one of:- Success page:
/auth/success?platform=tiktok - Error page:
/auth/error?platform=tiktok&error=ERROR_MESSAGE
Refresh Token
POST /auth/tiktok/refresh
Refresh TikTok Shop access token
Parameters
The ID of the user
Response
Success or error message
New token expiration timestamp
Shop Operations
Get Shop Info
GET /tiktok/shop-info
Get TikTok Shop information
Parameters
The ID of the user
Response
TikTok Shop ID
Shop region code
Shop status (active/inactive)
Search Creators
GET /tiktok/creator/search
Search for TikTok creators
Parameters
The ID of the user
Token for pagination
Response
List of creator profiles
Token for the next page of results
Advanced Creator Search
POST /tiktok/creator/search
Advanced search for TikTok creators with filters
Parameters
The ID of the user
Token for pagination
Request Body
Response
List of filtered creator profiles
Token for the next page of results