Home Login Sign Up

Developer API

Integrate WhatsApp SaaS with your apps using REST API. Send WhatsApp messages and check account info programmatically.

Overview

The Developer API is available to account owners. Generate API tokens from Developer API in the dashboard (/developer-api).

Base URL:

https://live.zappychat.in/api/v1

Authentication

All API requests require a Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN
  1. Generate token

    Developer API → Create Token → enter a name → Generate.

  2. Copy token immediately

    The full token is shown only once. Store it securely.

  3. Use in requests

    Include as Bearer token in every API call.

Keep tokens secret Never expose API tokens in client-side code, public repos, or browser JavaScript. Tokens are hashed in the database — lost tokens cannot be recovered, only revoked and recreated.

GET /account

Returns account and WhatsApp connection info.

curl -H "Authorization: Bearer YOUR_TOKEN" \
  https://live.zappychat.in/api/v1/account

POST /messages

Send a text or template message to a phone number.

Send text message

curl -X POST https://live.zappychat.in/api/v1/messages \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "919876543210",
    "type": "text",
    "text": "Your order #1001 has shipped!"
  }'

Send template message

curl -X POST https://live.zappychat.in/api/v1/messages \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "919876543210",
    "type": "template",
    "template": {
      "name": "order_update",
      "language": "en",
      "components": []
    }
  }'

Phone number format: Country code + number, no + or spaces (e.g. 919876543210 for India).

Response codes

CodeMeaning
200Success
401Invalid or missing token
422Validation error (check phone format, message body)
429Rate limit exceeded
503WhatsApp not configured or subscription inactive

Rate limits

API requests are limited to 120 requests per minute per token. Message sending also counts toward your subscription message limit.