TikTok error 40105: access token invalid or incorrect
TikTok error 40105 means the access token in the request is invalid or incorrect, so TikTok does not accept it for the call. Check that the request sends the account's current TikTok account token, complete and in the Access-Token header. Renew it with the refresh token if needed, and if access was revoked, have the account owner authorize the app again.
easyCoexistence sends the TikTok account's current token with every call from Claude, ChatGPT or your own code, and renews it with the refresh token before it expires.
TikTok's return code for an invalid or incorrect access token; the fix is to send a valid one.
How long a TikTok account access token lasts before it has to be renewed with the refresh token.
The TikTok app option, under Manage app permissions, with which an account owner revokes an app's access.
A Marketing API token from /oauth2/access_token/, which does not expire and is not a TikTok account token.
What does error 40105 mean?
The token reached TikTok, but TikTok does not accept it. The return code appendix calls it an invalid or incorrect access token and gives one fix: use a valid access token and try again. Unlike 40102, it does not say the token is too old; it says the token is not valid for the call.
What should you check?
TikTok's appendix names no causes for 40105, but its documentation points to the ways a token can fail to be the one TikTok expects:
- Revoked by the app, with /
tt_user/oauth2/revoke/, for example when the account was disconnected. - Revoked by the owner, in the TikTok app under Settings and privacy, Security, Manage app permissions, Remove access.
- The wrong kind: an advertiser token from /oauth2/
access_token/ serves the Marketing API, while Accounts API calls need a TikTok account token from /tt_user/oauth2/token/. - Altered on the way: cut short, wrapped in quotes or carrying stray spaces when read from storage or an environment variable.
How do you fix it?
Start from the account's current token. Compare its length and first characters with the value TikTok returned, rather than printing all of it, and confirm the request sends it in Access-Token. If it should be valid and still fails, renew it with the refresh token. If the renewal is refused as well, have the account owner authorize the app again, which issues a new access token and refresh token.
Should you retry 40105?
Not with the same token. A retry sends the identical value, so it fails the same way. Retry once the token has been corrected, renewed or replaced through a new authorization. If one account's calls keep failing this way while others work, look at that account's authorization first: its owner may have removed the app's access.
Common mistakes
- Retrying with the same token. Nothing about it changes between attempts, so each retry returns 40105 again.
- Using an advertiser token for account calls. Marketing API tokens come from /oauth2/access_token/; Accounts API calls need the TikTok account token from /tt_user/oauth2/token/.
- Reading the token from storage without trimming it. A stray space, quote or line break makes it a different string from the one TikTok issued.
When TikTok answers 40105, or 40102 or 40104, the connection is marked for reconnecting straight away and an email asks you to reconnect it. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
What is the difference between TikTok errors 40102 and 40105?
40102 says the access token has expired, which renewal fixes. 40105 says the token is invalid or incorrect, so check what was sent before renewing.
Can a revoked TikTok access token be used again?
No. Once the app or the account owner revokes access, the way back is a new authorization, which issues a new access token and refresh token.
Does a Marketing API token work for TikTok account calls?
No. The Accounts API needs a TikTok account access token from /tt_user/oauth2/token/, which lasts one day; advertiser tokens belong to the Marketing API.
Where does a TikTok account owner remove an app's access?
In the TikTok mobile app: Settings and privacy, then Security, then Manage app permissions, where they pick the app and choose Remove access.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on