Documentation
All pages
.md
Built and tested. The public service opens with the platform launch; until then API keys are not issued to customers.

Getting started

Before you call the API

  1. Connect a WhatsApp number in the dashboard (Numbers page, "Connect with Meta"). The API sends from your first connected number.
  2. Get a template approved if you want to message people who have not written to you in the last 24 hours (Templates page). Free-form text works only inside the customer's 24-hour window.
  3. Create an API key: Developers > API keys > "New key". The key is shown once. Copy it into your secret store. Only the workspace owner can create keys.

1. Check the key works

curl https://app.easytawasul.com/api/v1/me \
  -H "Authorization: Bearer $API_KEY"
{ "workspace": { "name": "Your store", "country": "EG", "currency": "EGP" }, "wallet_currency": "EGP" }

A wrong or revoked key returns 401 with code api.unauthorized.

2. Send a template message

curl https://app.easytawasul.com/api/v1/messages \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1042-confirm" \
  -d '{
    "to": "+201000000000",
    "type": "template",
    "template": { "name": "order_confirmation", "language": "ar", "variables": ["Mona", "1042"] },
    "client_reference": "order-1042"
  }'
{
  "id": "msg_81", "direction": "outbound", "to": "201000000000", "type": "template",
  "body": "Hello Mona, your order 1042 ...", "status": "sent", "error": null,
  "client_reference": "order-1042", "whatsapp_message_id": "wamid.HBg...", "created_at": "2026-10-22T10:00:00+03:00"
}

The response is 202 Accepted. The status moves to delivered and read as Meta reports it; you get each change as a webhook or by reading the message.

3. Read it back

curl https://app.easytawasul.com/api/v1/messages/msg_81 -H "Authorization: Bearer $API_KEY"

4. Receive replies

Add a webhook URL under Developers > Webhooks. Incoming customer messages, delivery statuses and order changes are posted to it, signed with your secret. See Webhooks.

Next