TikTok API Error ReferenceComplete troubleshooting guide with solutions

Comprehensive reference for TikTok API errors. Find solutions and troubleshoot common integration issues.

25 error codes
7 categories
API v1

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-token

TikTok 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-token

Missing 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-token

Additional 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-error

Account 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-error

TikTok 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-error

Daily 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-error

The 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-error

TikTok 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-error

Daily 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-error

File 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-error

Video 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-error

Video 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-error

Picture / 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-error

Video 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-error

File 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-error

Failed 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-error

Failed 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-error

Invalid 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_exceededretry

TikTok 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 requestsretry

TikTok 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-error

Your 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-error

URL 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-error

Privacy 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

internalretry

There 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-error

Invalid 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.