WhatsApp API

Getting started

  1. Register at whatsapp.s.co.tz/register.
  2. Create a WhatsApp instance in the dashboard and scan the QR code.
  3. Create an API key (live or test mode).
  4. Call the API with Authorization: Bearer sk_live_...

Quick example

curl -X POST https://whatsapp.s.co.tz/api/v1/messages/text \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "instance_id": "inst_xxxxxxxxxxxx",
    "to": "+255712345678",
    "text": "Hello from WhatsApp API"
  }'

Test mode

Use a sk_test_ key to simulate sends without connecting WhatsApp. Responses include simulated: true.