Authentication
To use the Public API, you must authenticate every request using an API Token.
Generating an API Token
- Log in to your WhatsSpot Dashboard.
- Go to Settings > API Access.
- Click Create New Token.
- Give it a name (e.g., "Zapier Integration").
- Copy the token immediately. It will not be shown again.
Making Requests
Include the x-api-key header in all your HTTP requests.
POST /messages/send HTTP/1.1
Host: api.whatsspot.in
x-api-key: YOUR_API_TOKEN_HERE
Content-Type: application/json
Alternatively, you can pass the token as a query parameter ?token=YOUR_API_TOKEN (less secure).
[!WARNING] Keep your API key secure. Do not share it in client-side code (browsers/mobile apps). If compromised, revoke it immediately from the dashboard.