Invalid access token
- You may be using an agent token to authorize a call to the Customer Chat API, or vice versa.
- Check that you copied the token correctly.
- Check if your token contains
%3A. If it does, replace it with:. - If the issue persists, try acquiring a new token using the OAuth authorization guide.
- You can verify your token using the Check token option in Text under Settings → API access. Note that this tool does not support customer access tokens.
Invalid message
- Make sure the request body is in JSON format.
- Check that all commas, quotation marks, and brackets are correct.
- Compare your request payload with the corresponding example in the API reference.
The client is not authorized to request a token using this method
This error occurs when exchanging an expired authorizationcode for a token in the OAuth flow. Authorization codes are short-lived and can only be exchanged once.
The request is missing a required parameter
- Make sure
response_typematches your client type:codefor server-side apps,tokenfor web apps. - Confirm that
client_idmatches the Client ID of your app, available in Text under Settings → API access → OAuth clients. - Check that
redirect_uriexactly matches the URI configured in your OAuth client, including any trailing slash.