Send Your First Message
Prerequisites
- A Muchaw DEV account with an API key
- A WhatsApp number with
status: ACTIVE(see Quickstart) - The recipient’s phone number must have WhatsApp installed
Step 1 — Find your number ID
Copy the id of the number you want to send from.
Step 2 — Send a text message
Successful response:
Step 3 — Prevent duplicate sends (optional)
Add the Idempotency-Key header to safely retry failed requests:
If you call this endpoint again with the same Idempotency-Key within 24 hours, you’ll get the original response without sending a duplicate message.
Sending different message types
Template message
Templates must be pre-approved by Meta. Use them for the first message to a user (outside of a conversation window).
Image message
Document message
Handling errors
Track delivery status
Check the message status after sending:
Or set up a webhook for message.delivered and message.read events for real-time updates.