Summary
Your Bearer Token is required for authenticating API requests in WATI. However, it will expire if you change your password. When this happens, you must update your existing or new API calls with the new token.
This guide explains how to locate your API Endpoint URL and Bearer Token in your WATI account.
Instructions
Steps to Find Your API Endpoint URL and Bearer Token
Follow these simple steps to retrieve your API credentials:
1. Log in to your WATI account.
2. In the top navigation menu, go to API Docs.
3. On the API Docs page, you will find both:
API Endpoint URL
Bearer Token
4. Click to copy the credentials and use them in your API requests.
Important Notes
If you change your password, your current Bearer Token will expire. You must generate a new one and update it in your API requests.
Always keep your Bearer Token secure and avoid sharing it publicly.
For more details, refer to the WATI API Documentation.
Frequently Asked Questions (FAQs)
API Credentials
1. What is a Bearer Token, and why do I need it?
→ A Bearer Token is a secure key required to authenticate API requests in WATI. Without a valid token, API calls will not be authorized.
2. Where can I find my API Endpoint URL and Bearer Token?
→ You can find them by following these steps:
Log in to your WATI account.
Navigate to API Docs in the top menu.
Copy the API Endpoint URL and Bearer Token from the page.
3. What happens if my Bearer Token expires?
→ If your token expires, your API requests will fail. To fix this, generate a new token from the API Docs page and update your API calls accordingly.
Token Expiration and Security
4. Why does my Bearer Token expire when I change my password?
→ For security reasons, changing your password invalidates your existing Bearer Token. This prevents unauthorized access in case of a compromised account.
5. How can I get a new Bearer Token?
→ Simply go to API Docs in your WATI account and copy the newly generated Bearer Token. Update it in your API requests.
6. How do I keep my Bearer Token secure?
Do not share your token publicly.
Store it in a secure location.
Use environment variables instead of hardcoding it in your scripts.
Troubleshooting
7. My API requests are failing. Could it be a token issue?
→ Yes, if your Bearer Token is expired or incorrect, API requests will fail. Check the API Docs page for a valid token and update your requests.
8. I changed my password but forgot to update my token. What should I do?
→ Go to API Docs, get your new Bearer Token, and replace the old one in your API calls.
9. Can multiple users share the same Bearer Token?
→ No, each token is unique to an account. Sharing it is not recommended for security reasons. For more details, refer to the WATI API Documentation.