💬 SalesByte

Authentication

How to create an API key and authenticate your requests.

Every API request must include your API key in the Authorization header.

Create an API key

  1. Go to SettingsAPI Keys
  2. Click Create API Key
  3. Give it a name (e.g. "Zapier Integration" or "My App")
  4. Select which WhatsApp connection it should use for sending
  5. Copy the key — you can only see it once

Use the key

Add it to every request as a Bearer token:

Authorization: Bearer YOUR_API_KEY

Example request

curl -X POST https://app.salesbyte.in/api/v1/messages \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to": "+919876543210", "text": "Hello from the API!"}'

Key security

  • Store your API key as an environment variable — never hard-code it
  • Each key is linked to one WhatsApp connection
  • You can revoke a key any time from SettingsAPI Keys
  • Set an expiry date on keys for extra security

Error responses

StatusMeaning
401 UnauthorizedMissing or invalid API key
402 Payment RequiredYour plan doesn't include API access (Growth+ required)
429 Too Many RequestsRate limit exceeded

On this page