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

Connect with AI

There are two ways to let an AI assistant work with EasyTawasul.

  1. Write the code for you. Give your coding assistant the prompt below. It reads the real docs and writes the integration into your project.
  2. Act for you. Connect the assistant to the MCP server. Start with read-only access.

Prompt for a coding assistant

Copy this into your assistant (replace the bracketed parts):

I want to integrate WhatsApp messaging from my [Node.js / PHP / Python / Laravel / WordPress] project using the EasyTawasul REST API.

Read these first, they are the source of truth:
- https://easytawasul.com/en/docs-send-message.html
- https://easytawasul.com/en/docs-webhooks.html
- https://easytawasul.com/en/docs-errors-and-limits.html
(Plain-text copies of every page: https://easytawasul.com/llms-full.txt)

Rules:
- Base URL is https://app.easytawasul.com/api/v1 and every call sends "Authorization: Bearer <key>".
- Read the key from an environment variable named EASYTAWASUL_API_KEY. Never hardcode it and never log it.
- Use POST /messages. Send template messages by default; free text only works inside the customer's 24-hour window (the API answers 409 window_closed otherwise).
- Send an Idempotency-Key header on every send so retries cannot message twice.
- Verify the X-Webhook-Signature on my webhook endpoint using the raw request body, and reject timestamps older than 5 minutes.
- Handle the documented error codes; retry only 429 and 502 with growing waits.
- Do not invent endpoints or fields. If something is not in the docs, tell me instead of guessing.

My task: [for example: when a new order is created in my store, send the customer the order_confirmation template with their name and order number, and save the returned message id].

What the assistant can rely on

Everything on the other doc pages is implemented and tested: Send a message, OTP, Orders API, Webhooks. Anything not built yet is on the Roadmap, so the assistant will not be told about endpoints that do not exist.