TikTok API Error ReferenceComplete troubleshooting guide with solutions
Comprehensive reference for TikTok API errors. Find solutions and troubleshoot common integration issues.
Error Categories
Authentication
3 errors
Spam
6 errors
Video Format
6 errors
Media
3 errors
Rate Limit
2 errors
App Status
3 errors
Server
2 errors
All Error Codes
#Authentication
access_token_invalidrefresh-tokenTikTok access token is invalid. Please reconnect your TikTok account.
Solution:
Your access token is no longer valid. Go to account settings and reconnect your TikTok account to get a new valid token.
scope_not_authorizedrefresh-tokenMissing required TikTok permissions. Please reconnect with all required scopes.
Solution:
You didn't grant all required permissions. When reconnecting, make sure to approve all requested scopes including video.upload and user.info.basic.
scope_permission_missedrefresh-tokenAdditional permissions required, please re-authenticate.
Solution:
Additional permissions are needed for this operation. Reconnect your TikTok account and ensure all permissions are granted.
#Spam
spam_risk_user_banned_from_postinguser-errorAccount banned from posting. Please check your TikTok account status.
Solution:
Your TikTok account has been restricted from posting. Log into TikTok directly to see if there are any warnings. You may need to appeal the restriction.
spam_risk_textuser-errorTikTok detected potential spam in the post text.
Solution:
Your caption or text was flagged as spam. Avoid repetitive content, excessive links, or promotional language. Try posting different content.
spam_risk_too_many_postsuser-errorDaily post limit reached. Please try again tomorrow.
Solution:
You've exceeded TikTok's daily posting limit. Wait 24 hours before posting again. Consider spreading your posts across multiple days.
spam_risk_too_many_pending_shareuser-errorThe daily upload cap from the API is reached for the current user.
Solution:
To reduce spamming, TikTok limits the number of videos that can be uploaded via API that are not pending approval and posting by the creator. There may be at most 5 pending shares within any 24-hour period.
spam_riskuser-errorTikTok detected potential spam.
Solution:
TikTok's spam detection system flagged your content. Ensure your content is original and follows TikTok's community guidelines. Avoid repetitive posts.
reached_active_user_capuser-errorDaily active user quota reached, please try again later.
Solution:
Your app has reached its daily active user limit. This is set by TikTok based on your app's status. Wait 24 hours or request a quota increase.
#Video Format
file_format_check_faileduser-errorFile format is invalid. Please check TikTok video specifications.
Solution:
Your video format is not supported. TikTok requires MP4 or WebM format. Convert your video and ensure it meets TikTok's specifications.
duration_check_faileduser-errorVideo duration is invalid. Please check TikTok video specifications.
Solution:
Video duration must be between 3 seconds and 10 minutes. Trim your video to fit within these limits.
frame_rate_check_faileduser-errorVideo frame rate is invalid. Please check TikTok video specifications.
Solution:
TikTok requires a frame rate between 23-60 fps. Re-encode your video with a supported frame rate.
picture_size_check_faileduser-errorPicture / Video size is invalid, must be at least 720p.
Solution:
Your video resolution is too low. TikTok requires minimum 720p resolution. Use a higher quality video source.
video durationuser-errorVideo duration exceeds TikTok's limits. Please use a shorter video.
Solution:
Your video is too long. Maximum duration is 10 minutes. Edit your video to be shorter or split it into multiple parts.
file sizeuser-errorFile size exceeds TikTok's limits. Please use a smaller file.
Solution:
Maximum file size is typically 287MB for videos. Compress your video or reduce its quality to meet the size limit.
#Media
video_pull_faileduser-errorFailed to pull video from URL. Please check the video URL is accessible.
Solution:
TikTok couldn't download your video from the provided URL. Ensure the URL is publicly accessible, returns correct headers, and the file is valid.
photo_pull_faileduser-errorFailed to pull photo from URL. Please check the photo URL is accessible.
Solution:
TikTok couldn't download your image. Verify the URL is publicly accessible and returns the correct content-type header (image/jpeg or image/png).
invalid_file_uploaduser-errorInvalid file format or specifications not met.
Solution:
Your file doesn't meet TikTok's requirements. Check that it's a valid video/image file in a supported format and meets all specifications.
#Rate Limit
rate_limit_exceededretryTikTok rate limit exceeded. Please try again in a few moments.
Solution:
You've made too many requests too quickly. Wait a few minutes before trying again. The system will automatically retry for you.
too many requestsretryTikTok rate limit exceeded. Please try again in a few moments.
Solution:
TikTok is rate limiting your requests. Reduce the frequency of API calls and implement exponential backoff in your retry logic.
#App Status
unaudited_client_can_only_post_to_private_accountsuser-errorYour app is in development mode and can only post privately. Please submit for TikTok review for public posting.
Solution:
Your TikTok app is not approved for production. Submit your app for TikTok's review process to enable public posting capabilities.
url_ownership_unverifieduser-errorURL ownership not verified, please verify domain ownership.
Solution:
You need to verify ownership of any external URLs in your posts. Add the verification code to your domain or use the TikTok developer console to verify.
privacy_level_option_mismatchuser-errorPrivacy level mismatch, please check privacy settings.
Solution:
The privacy level you specified doesn't match your app's capabilities or account settings. Review your app's permissions and the privacy settings.
#Server
internalretryThere is a problem with TikTok servers, please try again later.
Solution:
TikTok is experiencing server issues. This is temporary. Wait a few minutes and try again. The system will automatically retry.
invalid_paramsuser-errorInvalid request parameters, please check content format.
Solution:
One or more parameters in your request are invalid. Review the TikTok API documentation and ensure all required fields are present and correctly formatted.
Best Practices
Error Handling
- →Implement automatic retries for rate limit and service errors
- →Store refresh tokens securely and handle token refresh flows
- →Log all errors with context for debugging
- →Show user-friendly error messages in your UI
Prevention Tips
- →Validate content before sending to TikTok API
- →Compress videos and optimize media before upload
- →Implement rate limiting in your application
- →Follow TikTok Community Guidelines and Terms of Service
Need Help with TikTok Integration?
Our API handles format validation, spam prevention, and error handling automatically.