Skip to main content

Authentication

To use the Public API, you must authenticate every request using an API Token.

Generating an API Token

  1. Log in to your WhatsSpot Dashboard.
  2. Go to Settings > API Access.
  3. Click Create New Token.
  4. Give it a name (e.g., "Zapier Integration").
  5. 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.