API Tokens
API Tokens allow you to authenticate your applications and scripts with the WhatsSpot API programmatically. You can generate multiple tokens for different integrations.
Managing API Tokens
You can manage your API tokens directly from the WhatsSpot Dashboard.
Creating a Token
- Go to Settings > API Tokens.
- Click the Generate Token button.
- Enter a descriptive name for your token (e.g., "Zapier Integration", "Website Contact Form").
- Click Generate.
- Copy your token immediately.
[!CAUTION] For security reasons, the token is only shown once. If you close the dialog without copying it, you will need to generate a new one.
Revoking a Token
If a token is compromised or no longer needed, you should revoke it immediately:
- Go to Settings > API Tokens.
- Find the token in the list.
- Click the Trash Icon (Revoke).
- The token will stop working immediately.
Using API Tokens
Include your token in the HTTP Authorization header or as a custom header x-api-key in your requests.
See the API Reference for technical details on using tokens.