On this page

This is the legacy v1 reference. API v2 adds scoped account keys and every resource in one REST surface — open the v2 docs or see how to migrate.

Mursilat for developers

API & Webhooks

Send every message type — text, media, stickers, locations, contacts, buttons and lists — from your WhatsApp Business number with one endpoint, and get every reply, delivery update and opt-out on your server — signed, retried and logged.

  • REST + JSON
  • One endpoint, every type
  • Signed webhooks (HMAC-SHA256)
  • cURL · Node · PHP · Python
Base URL
https://mursilat.com/api/v1
Webhook API version
2026-10
On this page

Quick start

The Mursilat API lets your system send messages from your own official WhatsApp Business number — every type, from text and media to buttons and lists, through one endpoint — and receive customer replies and delivery updates on your webhook.

  1. Connect your official WhatsApp Business number in the dashboard: Numbers → Meta Embedded Signup.
  2. Open Numbers → your number → Developer and generate an API key (shown once) and choose its permissions.
  3. In the same tab, save your webhook URL, choose version 2, and copy the signing secret (shown once).
  4. Send your first buttons message (below). Every send needs an Idempotency-Key.
  5. The customer taps a button — or types its number — and you receive interactive.reply on your webhook.
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: order-1042-confirm" \
  -d '{
  "to": "201001234567",
  "type": "buttons",
  "body": {
    "text": "Do you confirm your order?"
  },
  "footer": {
    "text": "Al Nour Store"
  },
  "buttons": [
    {
      "id": "confirm",
      "title": "Confirm"
    },
    {
      "id": "cancel_order",
      "title": "Cancel order"
    }
  ],
  "reference": "order-1042"
}'

Base URL: https://mursilat.com/api/v1. Requests and responses are JSON (UTF-8); times are ISO-8601 in UTC. Phone numbers are international digits without + (e.g. 201001234567).

Authentication & API keys

Each number has its own API key. Send it in the x-api-key header from your server (never from a browser or mobile app). We store only a fingerprint of the key, so it is shown once when you generate it; generating a new one stops the old key immediately.

Permission (scope)Allows
sendAllowsEvery send on POST /messages, GET /interactions/:id
mediaAllowsMedia types (together with send), media uploads and downloads
webhookAllowsReceiving webhook events

API access is part of your plan. Without it every call answers 403 API_ACCESS_NOT_IN_PLAN.

Idempotency

Every send requires an Idempotency-Key header (up to 191 characters, unique per message — e.g. order-1042-confirm). If your request times out, retry with the same key: you get the original result and the message is never sent twice.

  • IDEMPOTENCY_KEY_REQUIRED — the header is missing.
  • IDEMPOTENCY_KEY_REUSED — the key was already used with a different body.
  • IDEMPOTENCY_IN_PROGRESS — the first request with this key is still running; retry in a few seconds.

Send any message (unified endpoint)

POST /whatsapp/public/messages is the one endpoint for every message type: send { "to": "…", "type": "…", …fields }. Scope send (media types also need media), a plan with API access, and an Idempotency-Key header.

`type`What it isDetails
textWhat it isText with WhatsApp formatting and an optional link previewDetailsText
image · video · audio · voice · documentWhat it isPhotos, videos, audio files, voice notes, filesDetailsMedia
stickerWhat it isWebP sticker — PNG/JPG/GIF are convertedDetailsStickers
locationWhat it isA pin on the map (not live location)DetailsLocation
contactWhat it is1–5 contact cardsDetailsContact cards
buttons · list · cta_urlWhat it isReply buttons, list menu, link button (with numbered fallback)DetailsButtons
templateWhat it isAn approved Meta template: the only message that reaches customers who haven’t written in the last 24 hours. { "type": "template", "template": { "name": "order_shipped", "language": "ar", "params": ["Ahmed", "1042"] } } — params fill {{1}}, {{2}}… (or send Meta components)DetailsOfficial numbers only

Common fields

FieldNotes
toNotesRequired. International digits, no + (e.g. 201001234567) — or, for a WhatsApp user who hid the phone behind a username, the user id (BSUID) from message.received (e.g. EG.4110857709215331). A BSUID is case-sensitive: send it exactly as received.
typeNotesRequired. One of the types above. Others answer 400 MESSAGE_TYPE_NOT_SUPPORTED with a reason (see Not possible).
referenceNotesOptional, ≤128. Your own id, echoed in message.status and interactive.reply.
replyToNotesOptional. Quote a message: the messageId a send returned, or a Mursilat inbox message id, in this chat.
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: order-1042-shipped" \
  -d '{
  "to": "201001234567",
  "type": "text",
  "text": "Hi Mona, your order #1042 has shipped and arrives tomorrow.",
  "reference": "order-1042"
}'
Response
{
  "messageId": "3EB0A1B2C3D4E5F60718",
  "status": "sent",
  "type": "text",
  "reference": "order-1042",
  "interactionId": null,
  "format": null,
  "fallbackIncluded": null,
  "estimatedDelayMs": null
}

Under load a send may be "status": "queued" with estimatedDelayMs: the message id is reserved and the final result arrives as a message.status webhook. Interactive types also return interactionId, format and fallbackIncluded.

Media: a link or an upload

  • "media": { "url": "https://…" } — a public link we download once, safely (no private addresses, no redirects, 20 s, size limit of the type).
  • "media": { "id": "med_…" } — a file uploaded first with the upload endpoint (kept privately for 24 hours, same number).
  • Or send multipart/form-data with the same fields plus file (nested objects as JSON strings).
  • We check the real file type from its bytes, never from the name: a mismatch answers 415 MESSAGE_MEDIA_TYPE_NOT_ALLOWED.
Send a file in the same request (multipart)
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: invoice-1042-doc" \
  -F "to=201001234567" \
  -F "type=document" \
  -F "fileName=invoice-1042.pdf" \
  -F "file=@./invoice-1042.pdf"

Legacy endpoints keep working

message/send, media/send and interactive/send are legacy: they stay supported with exactly the same request and response, and go through the same sending path. New integrations should use POST /whatsapp/public/messages.

Text

"type": "text" — up to 4096 characters. WhatsApp formatting passes through: *bold* _italic_ ~strike~ and triple backticks for monospace.

FieldLimitsNotes
textLimits1–4096NotesRequired.
linkPreviewLimitsbooleanNotesDefault true: we build a preview (title, description, image) of the first https link, safely, within 3 seconds. No preview when the page can’t be read — the text is still sent.
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: order-1042-shipped" \
  -d '{
  "to": "201001234567",
  "type": "text",
  "text": "Hi Mona, your order #1042 has shipped and arrives tomorrow.",
  "reference": "order-1042"
}'

On the phone: a normal chat bubble on every WhatsApp version. Link previews show on all recent apps.

Images, video, audio, voice notes & documents

Every media type takes media (a link or an upload id — see Media: a link or an upload).

`type`Formats & sizeExtra fields
imageFormats & sizeJPEG · PNG · WebP, ≤5 MBExtra fieldscaption ≤1024
videoFormats & sizeMP4 · 3GPP, ≤16 MBExtra fieldscaption ≤1024
audioFormats & sizeOGG · MP3 · M4A · AAC · AMR, ≤16 MBExtra fields—
voiceFormats & sizeAny of the audio formats, ≤16 MBExtra fields—
documentFormats & sizeAny file except programs, ≤100 MBExtra fieldsfileName ≤120 · caption ≤1024

Image

curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: launch-photo-201001234567" \
  -d '{
  "to": "201001234567",
  "type": "image",
  "media": {
    "url": "https://example.com/products/new.jpg"
  },
  "caption": "The new product is here 🎉"
}'

On the phone: a photo with its caption.

Video

curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: howto-video-201001234567" \
  -d '{
  "to": "201001234567",
  "type": "video",
  "media": {
    "id": "med_01J9ZK4A2B3C4D5E6F7G8H9J0K"
  },
  "caption": "How to use it in one minute"
}'

GIF and round video note

gif and videoNote are still accepted so old integrations keep working, but official (Cloud API) numbers ignore them: the customer gets a normal video.

Audio file

curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: jingle-201001234567" \
  -d '{
  "to": "201001234567",
  "type": "audio",
  "media": {
    "url": "https://example.com/audio/jingle.mp3"
  }
}'

On the phone: an audio file with a play button and its name — not a voice note.

Voice note

curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: voice-reply-1042" \
  -d '{
  "to": "201001234567",
  "type": "voice",
  "media": {
    "id": "med_01J9ZK4A2B3C4D5E6F7G8H9J0M"
  },
  "reference": "order-1042"
}'

On the phone: a voice note, like one recorded in the app. OGG/Opus and WebM keep the waveform; other formats are converted when possible, otherwise they still play as a voice note without a waveform.

Document

curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: order-1042-invoice" \
  -d '{
  "to": "201001234567",
  "type": "document",
  "media": {
    "url": "https://example.com/invoices/1042.pdf"
  },
  "fileName": "invoice-1042.pdf",
  "caption": "Invoice for order #1042",
  "reference": "order-1042"
}'

On the phone: a file card with its name, size and type. fileName defaults to the uploaded file’s name or the last part of the URL.

Stickers

"type": "sticker" with media.

  • WebP (static or animated) up to 500 KB is sent as is.
  • PNG, JPG and GIF (up to 5 MB) are converted to a 512×512 WebP sticker with a transparent background; an animated GIF becomes an animated sticker.
  • Anything else answers MESSAGE_STICKER_INVALID.
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: thanks-sticker-1042" \
  -d '{
  "to": "201001234567",
  "type": "sticker",
  "media": {
    "url": "https://example.com/stickers/thanks.webp"
  }
}'

On the phone: a sticker without a bubble, on every recent WhatsApp version.

Location

"type": "location" — a static pin. Live location can’t be sent.

FieldLimits
latitudeLimits−90 … 90 (required)
longitudeLimits−180 … 180 (required)
nameLimits≤100
addressLimits≤200
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: store-location-1042" \
  -d '{
  "to": "201001234567",
  "type": "location",
  "latitude": 30.0444,
  "longitude": 31.2357,
  "name": "Al Nour Store",
  "address": "12 Tahrir St, Cairo"
}'

On the phone: a map preview with the name and address; tapping it opens the map app.

Contact cards

"type": "contact" — 1 to 5 cards. We build the vCard on the server (escaped, with a WhatsApp link per phone).

FieldLimits
contacts[]Limits1–5
contacts[].nameLimits≤100 (required)
contacts[].phones[]Limits1–3, digits with the country code (+ and spaces allowed)
contacts[].emailLimits≤120, a valid email
contacts[].organizationLimits≤100
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: support-card-1042" \
  -d '{
  "to": "201001234567",
  "type": "contact",
  "contacts": [
    {
      "name": "Al Nour Store support",
      "phones": [
        "+20 100 302 2759"
      ],
      "email": "support@example.com",
      "organization": "Al Nour Store"
    }
  ]
}'

On the phone: a contact card with “Message” and “Add” buttons; several cards show as one bubble.

Send buttons

POST /whatsapp/public/messages with "type": "buttons" — up to 3 reply buttons. Scope send. The legacy POST /whatsapp/public/interactive/send takes exactly the same body and keeps working.

Read this first: buttons on every phone

On some phones and app versions buttons may show as plain text without buttons. That’s why every interactive message includes a numbered fallback by default: the customer can always answer by typing the number (1, 2, 3 — Arabic digits work too) or the option title. However they answer, you receive the same interactive.reply event.

FieldLimitsNotes
toLimits—NotesRequired. International digits, or a user id (BSUID, case-sensitive).
typeLimitsbuttons · list · cta_urlNotesRequired.
header.textLimits≤60NotesOptional.
body.textLimits1–1024NotesRequired.
footer.textLimits≤60NotesOptional.
buttons[]Limits1–3Notesid ≤64 (A-Z a-z 0-9 _ . : -, unique) · title ≤20 (unique).
fallbackLimitsnumbered · noneNotesDefault numbered.
localeLimitsar · enNotesLanguage of the fallback hint line. Default ar.
referenceLimits≤128NotesYour own id, echoed in webhooks.
expiresInMinutesLimits5–10080NotesHow long replies are matched. Default 1440 (24h).
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: order-1042-confirm" \
  -d '{
  "to": "201001234567",
  "type": "buttons",
  "body": {
    "text": "Do you confirm your order?"
  },
  "footer": {
    "text": "Al Nour Store"
  },
  "buttons": [
    {
      "id": "confirm",
      "title": "Confirm"
    },
    {
      "id": "cancel_order",
      "title": "Cancel order"
    }
  ],
  "reference": "order-1042"
}'
Response
{
  "messageId": "3EB0A1B2C3D4E5F60718",
  "interactionId": "int_8f2c1d9a7b3e4f56a1b2c3d4",
  "status": "sent",
  "format": "native_flow_quick_reply",
  "fallbackIncluded": true
}

What the customer sees without buttons

With fallback: "numbered" the options are appended to the body, followed by a one-line hint (in your account language):

Message text
Do you confirm your order?

1) Confirm
2) Cancel order

Reply with the number of your choice

fallback: "none" sends the body only. We don’t recommend it: customers whose phone hides the buttons won’t see the options (typing an exact title still matches).

Send a list

"type": "list" — a menu button that opens up to 10 rows, grouped in sections. Rows can have a description.

FieldLimits
list.buttonTextLimits≤20 — the menu button label
list.sections[]Limits1–10 sections, title ≤24 (optional)
rows[]Limits1–10 rows in total · id ≤64 unique · title ≤24 · description ≤72 (optional)
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: menu-201001234567-1" \
  -d '{
  "to": "201001234567",
  "type": "list",
  "body": {
    "text": "How can we help?"
  },
  "list": {
    "buttonText": "Choose",
    "sections": [
      {
        "title": "Services",
        "rows": [
          {
            "id": "prices",
            "title": "Prices",
            "description": "See our prices"
          },
          {
            "id": "hours",
            "title": "Opening hours"
          }
        ]
      },
      {
        "title": "Support",
        "rows": [
          {
            "id": "agent",
            "title": "Talk to a person",
            "description": "Someone from the team replies"
          }
        ]
      }
    ]
  },
  "reference": "menu-main"
}'

The numbered fallback numbers the rows in order across sections (1…n), so typed numbers always match.

Link button (CTA)

"type": "cta_url" — one button that opens a link. It expects no answer, so there is no interactive.reply for it.

FieldLimits
cta.titleLimits≤20
cta.urlLimitsPublic https:// URL
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: order-1042-track" \
  -d '{
  "to": "201001234567",
  "type": "cta_url",
  "body": {
    "text": "Your parcel is on its way 🚚"
  },
  "cta": {
    "title": "Track shipment",
    "url": "https://example.com/track/1042"
  },
  "reference": "order-1042"
}'

The fallback appends the link (🔗 https://…). Link rules apply to the URL: shorteners are blocked (see Limits).

Types that can’t be sent

These types answer 400 MESSAGE_TYPE_NOT_SUPPORTED with details.type and details.reason.

`type``reason`Why
live_location`reason`LINKED_DEVICE_LIMITATIONWhyLive location is shared only from the WhatsApp app on the phone. Send a location pin instead. (The reason value is kept for compatibility.)
poll · event`reason`NOT_AVAILABLEWhyWhatsApp polls and events can’t be sent from official (Cloud API) numbers. Send buttons or a list instead.
payment`reason`NOT_AVAILABLEWhyWhatsApp Pay isn’t available in Egypt or Saudi Arabia.
product · catalog · order`reason`BUSINESS_CATALOG_ONLYWhyCatalog messages need the WhatsApp Business catalog on the phone. Send an image + a link button instead.
status · story`reason`OUT_OF_SCOPEWhyStatus updates aren’t chat messages.
call`reason`LINKED_DEVICE_LIMITATIONWhyCalls can’t be placed through the messages API.
album`reason`SEND_ITEMS_SEPARATELYWhySend each image or video as its own message.
anything else`reason`UNKNOWN_TYPEWhyNot a message type.

Upload media

POST /whatsapp/public/media/upload — scope media, multipart/form-data with file (≤100 MB; the limit of the type applies when you send it). Upload once, then send "media": { "id": "…" } — useful for large files or sending the same file to many customers.

Upload a file
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/media/upload" \
  -H "x-api-key: $WASLA_API_KEY" \
  -F "file=@./photo.jpg"

# → { "mediaId": "med_01J9ZK4A2B3C4D5E6F7G8H9J0K", "mimeType": "image/jpeg", "size": 184233,
#     "fileName": "photo.jpg", "expiresAt": "2026-10-11T12:00:00.000Z" }
Response fieldNotes
mediaIdNotesUse it as media.id (same number only).
mimeType · size · fileNameNotesWhat we detected.
expiresAtNotes24 hours after the upload. After that 410 MESSAGE_MEDIA_EXPIRED — upload again.

Uploads are private (never public links) and deleted automatically after 24 hours. Idempotency-Key is optional here.

Replies (interactive.reply)

When the customer answers a buttons or list message you receive interactive.reply — whether they tapped a button, picked a list row, typed the number or typed the option title. reply.source tells you how: button · list · number · title.

  • First answer wins. The interaction becomes ANSWERED; later answers arrive only as message.received.
  • Typed answers are matched to the customer’s latest open interaction on that number: digits 1…n (Latin or Arabic ١ ٢ ٣) or the option title.
  • Text that doesn’t match is a normal message.received — we never guess.
  • After expiresInMinutes the interaction is EXPIRED and no longer matched.
  • Opt-out words (e.g. “stop”, “إلغاء”) are always handled as an opt-out first, so option titles can’t be opt-out words, and titles must be distinct.

interactive.reply

Use reference (or interactionId) to find your order, and reply.id for the chosen option.

interactive.reply — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9X",
  "type": "interactive.reply",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:00:03.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "interactionId": "int_8f2c1d9a7b3e4f56a1b2c3d4",
    "messageId": "3EB0A1B2C3D4E5F60718",
    "reference": "order-1042",
    "from": {
      "phone": "201001234567",
      "lid": null,
      "name": "Mona Ali"
    },
    "reply": {
      "id": "confirm",
      "title": "Confirm",
      "index": 1,
      "source": "button"
    },
    "replyMessageId": "3EB0C9D8E7F6A5B40312",
    "timestamp": "2026-10-10T12:00:03.000Z"
  }
}

Check an interaction

GET /whatsapp/public/interactions/:interactionId — scope send. Useful as a fallback if a webhook was missed.

curl -X GET "https://mursilat.com/api/v1/whatsapp/public/interactions/int_8f2c1d9a7b3e4f56a1b2c3d4" \
  -H "x-api-key: $WASLA_API_KEY"
Response
{
  "interactionId": "int_8f2c1d9a7b3e4f56a1b2c3d4",
  "messageId": "3EB0A1B2C3D4E5F60718",
  "type": "buttons",
  "reference": "order-1042",
  "status": "ANSWERED",
  "options": [
    {
      "id": "confirm",
      "title": "Confirm",
      "index": 1
    },
    {
      "id": "cancel_order",
      "title": "Cancel order",
      "index": 2
    }
  ],
  "answer": {
    "id": "confirm",
    "title": "Confirm",
    "index": 1,
    "source": "number",
    "replyMessageId": "3EB0C9D8E7F6A5B40312",
    "answeredAt": "2026-10-10T12:00:03.000Z"
  },
  "expiresAt": "2026-10-11T12:00:00.000Z",
  "createdAt": "2026-10-10T12:00:00.000Z"
}

Webhooks

Webhooks push events to your server as they happen: incoming messages, delivery updates, interactive replies, opt-outs and number status. Version 2 has a stable, documented shape for every event.

Setup

  1. Numbers → your number → Developer: save your URL, choose version 2, and pick the events you want.
  2. Copy the signing secret (shown once — you can generate a new one at any time).
  3. Click Send a test event and check the result in the Webhook log.
  • Public https:// (or http://) URL on port 80 or 443. Private and internal addresses are rejected.
  • Answer with any 2xx within 10 seconds — do slow work after responding.
  • Redirects are not followed.
Request headers
POST /webhooks/mursilat HTTP/1.1
Content-Type: application/json
User-Agent: Wasla-Webhooks/2
X-Wasla-Event: interactive.reply
X-Wasla-Delivery: dlv_01J9ZK3R2B7C8D9E0F1G2H3J4K
X-Wasla-Webhook-Version: 2
X-Wasla-Signature: t=1760097603,v1=3f6c2b5e9a0d4c7f8e1b2a3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f70
Envelope fieldDescription
idDescriptionUnique event id (evt_…). The same on every retry and on manual resends — dedupe on it.
typeDescriptionEvent type, e.g. interactive.reply.
apiVersionDescription2026-10
createdAtDescriptionWhen the event happened (ISO-8601 UTC). Use it to order events.
sessionId · numberDescriptionWhich of your numbers it is about.
dataDescriptionEvent-specific payload (below).

Events

message.received

A customer sent a message. type is one of text · image · video · audio · voice · document · sticker · location · contact · reaction · interactive_reply · unsupported. We never send the raw WhatsApp object.

message.received — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9A",
  "type": "message.received",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:00:00.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "messageId": "3EB0F1E2D3C4B5A69788",
    "from": {
      "phone": "201001234567",
      "lid": null,
      "name": "Mona Ali"
    },
    "chat": {
      "type": "direct"
    },
    "type": "text",
    "text": "When will my order arrive?",
    "caption": null,
    "media": null,
    "location": null,
    "replyTo": null,
    "timestamp": "2026-10-10T12:00:00.000Z"
  }
}

message.received(image)

Media messages include media.url: a signed download link valid for 24 hours.

message.received — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9B",
  "type": "message.received",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:01:00.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "messageId": "3EB0A9B8C7D6E5F40011",
    "from": {
      "phone": "201001234567",
      "lid": null,
      "name": "Mona Ali"
    },
    "chat": {
      "type": "direct"
    },
    "type": "image",
    "text": null,
    "caption": "Receipt photo",
    "media": {
      "id": "cm2media0001",
      "mimeType": "image/jpeg",
      "size": 184233,
      "url": "https://mursilat.com/api/v1/whatsapp/public/media/cm2media0001?exp=1760184060&sig=5d41402abc4b2a76b9719d911017c592"
    },
    "location": null,
    "replyTo": {
      "messageId": "3EB0A1B2C3D4E5F60718"
    },
    "timestamp": "2026-10-10T12:01:00.000Z"
  }
}
Download media
# Signed link from the webhook (valid 24h) — no API key needed:
curl -o receipt.jpg "https://mursilat.com/api/v1/whatsapp/public/media/cm2media0001?exp=1760184060&sig=5d41…"

# After it expires: use your API key (scope: media)
curl -o receipt.jpg -H "x-api-key: $WASLA_API_KEY" "https://mursilat.com/api/v1/whatsapp/public/media/cm2media0001"

message.status

Delivery updates for messages you sent (API and dashboard): sent · delivered · read · failed (with error). reference is what you sent.

message.status — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9C",
  "type": "message.status",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:00:02.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "messageId": "3EB0A1B2C3D4E5F60718",
    "reference": "order-1042",
    "to": "201001234567",
    "status": "delivered",
    "error": null,
    "timestamp": "2026-10-10T12:00:02.000Z"
  }
}

message.status(failed)

Failures carry a stable error.code mapped from Meta’s reason: CLOUD_API_WINDOW_CLOSED (24 hours passed — send a template), RECIPIENT_UNDELIVERABLE, META_MARKETING_LIMIT, RECIPIENT_STOPPED_MARKETING, META_SPAM_RATE_LIMIT, META_PAIR_RATE_LIMIT, META_THROUGHPUT_LIMIT, META_PAYMENT_REQUIRED, META_ACCOUNT_LOCKED, MEDIA_UPLOAD_FAILED, TEMPLATE_NOT_FOUND, TEMPLATE_PARAMS_MISMATCH, TEMPLATE_PARAMS_FORMAT, TEMPLATE_TEXT_TOO_LONG, TEMPLATE_POLICY_VIOLATION, TEMPLATE_PAUSED, TEMPLATE_DISABLED; any other Meta reason arrives as META_<code>. Full list with fixes: the v2 error catalog.

message.status — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9H",
  "type": "message.status",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:00:04.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "messageId": "3EB0A1B2C3D4E5F60718",
    "reference": "order-1042",
    "to": "201001234567",
    "status": "failed",
    "error": {
      "code": "CLOUD_API_WINDOW_CLOSED",
      "message": "More than 24 hours passed since the customer last wrote: send an approved template."
    },
    "timestamp": "2026-10-10T12:00:04.000Z"
  }
}

message.echo

Coexistence numbers (also used in the WhatsApp Business app): you sent a message from the app on your phone. The customer is in to; origin is business_app. It is never a message.received and never triggers auto-replies.

message.echo — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9J",
  "type": "message.echo",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:04:00.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "messageId": "wamid.HBgMMjAxMDk5ODg3NzY2FQIAERgSRUNITzEA",
    "to": {
      "phone": "201001234567",
      "lid": null,
      "name": null
    },
    "type": "text",
    "text": "Sure, sending you the offer now",
    "caption": null,
    "media": null,
    "location": null,
    "replyTo": null,
    "origin": "business_app",
    "timestamp": "2026-10-10T12:04:00.000Z"
  }
}

interactive.reply

The customer answered your buttons or list (see Replies).

interactive.reply — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9X",
  "type": "interactive.reply",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:00:03.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "interactionId": "int_8f2c1d9a7b3e4f56a1b2c3d4",
    "messageId": "3EB0A1B2C3D4E5F60718",
    "reference": "order-1042",
    "from": {
      "phone": "201001234567",
      "lid": null,
      "name": "Mona Ali"
    },
    "reply": {
      "id": "confirm",
      "title": "Confirm",
      "index": 1,
      "source": "button"
    },
    "replyMessageId": "3EB0C9D8E7F6A5B40312",
    "timestamp": "2026-10-10T12:00:03.000Z"
  }
}

contact.opted_out

The customer asked to stop (opt-out keyword). Further sends to them are blocked with SAFETY_SUPPRESSED.

contact.opted_out — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9D",
  "type": "contact.opted_out",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:05:00.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "phone": "201001234567",
    "lid": null,
    "keyword": "STOP",
    "timestamp": "2026-10-10T12:05:00.000Z"
  }
}

contact.opted_in

The customer can receive messages again. keyword is null for manual changes.

contact.opted_in — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9E",
  "type": "contact.opted_in",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:06:00.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "phone": "201001234567",
    "lid": null,
    "keyword": null,
    "timestamp": "2026-10-10T12:06:00.000Z"
  }
}

number.status

Your number’s connection changed: connected · disconnected (e.g. reason: "offboarded" when it was removed from the WhatsApp Business app) · banned.

number.status — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9F",
  "type": "number.status",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:07:00.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "numberId": "cm1abc2def3ghi4jkl5mno6p",
    "status": "disconnected",
    "reason": "offboarded",
    "timestamp": "2026-10-10T12:07:00.000Z"
  }
}

number.quality

Meta changed the quality rating (GREEN · YELLOW · RED) or the messaging limit tier of your number. worse: true when it dropped — slow down and review what you send.

number.quality — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9K",
  "type": "number.quality",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:09:00.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "numberId": "cm1abc2def3ghi4jkl5mno6p",
    "phone": "+20 10 0123 4567",
    "quality": "YELLOW",
    "previousQuality": "GREEN",
    "messagingLimit": "TIER_1K",
    "previousMessagingLimit": "TIER_1K",
    "status": "CONNECTED",
    "worse": true,
    "timestamp": "2026-10-10T12:09:00.000Z"
  }
}

template.status

Meta reviewed one of your templates: APPROVED, REJECTED (with reason), PAUSED, DISABLED… Sent once per number of the WhatsApp Business Account.

template.status — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9L",
  "type": "template.status",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:10:00.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "templateId": "1234567890123456",
    "name": "order_shipped",
    "language": "en_US",
    "status": "REJECTED",
    "reason": "INVALID_FORMAT",
    "timestamp": "2026-10-10T12:10:00.000Z"
  }
}

Retired events

session.status, poll.vote and number.restricted belonged to linked (QR) numbers. They are still accepted in your event list, so nothing breaks, but they are never sent. Use number.status and number.quality.

webhook.test

Sent by the Send a test event button. Always uses the v2 envelope and is delivered even if not in your event list.

webhook.test — Example
{
  "id": "evt_01J9ZK3Q8V6Y2M4N7P1R5T0W9G",
  "type": "webhook.test",
  "apiVersion": "2026-10",
  "createdAt": "2026-10-10T12:08:00.000Z",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "number": "201100302759",
  "data": {
    "message": "This is a test event from Mursilat",
    "timestamp": "2026-10-10T12:08:00.000Z"
  }
}

Verify the signature

Every request carries X-Wasla-Signature: t=<unix seconds>,v1=<hex>, where v1 = HMAC-SHA256(secret, "<t>.<raw body>") in lowercase hex.

  1. Read the raw request body (bytes as received) — before any JSON parsing.
  2. Split the header on , and = to get t and v1.
  3. Reject if t is more than 5 minutes from your clock (replay protection).
  4. Compute the HMAC-SHA256 of t + "." + rawBody with your secret, as hex.
  5. Compare with v1 using a constant-time comparison. Only then parse the JSON.
// Node.js + Express. Use the RAW body: JSON.parse → JSON.stringify changes bytes and breaks the signature.
import crypto from 'node:crypto';
import express from 'express';

const app = express();
const SECRET = process.env.WASLA_WEBHOOK_SECRET;
const seen = new Set(); // use Redis/DB in production

function verifyWaslaSignature(rawBody, header, secret, toleranceSec = 300) {
  if (!header || !secret) return false;
  const parts = {};
  for (const pair of header.split(',')) {
    const i = pair.indexOf('=');
    if (i > 0) parts[pair.slice(0, i).trim()] = pair.slice(i + 1).trim();
  }
  const t = parts.t;
  const v1 = parts.v1;
  if (!/^\d+$/.test(t || '') || !/^[0-9a-f]{64}$/i.test(v1 || '')) return false;
  // Reject old (replayed) or far-future timestamps.
  if (Math.abs(Math.floor(Date.now() / 1000) - Number(t)) > toleranceSec) return false;
  const expected = crypto
    .createHmac('sha256', secret)
    .update(t + '.')
    .update(rawBody) // the RAW bytes exactly as received, not re-serialized JSON
    .digest();
  const received = Buffer.from(v1, 'hex');
  return received.length === expected.length && crypto.timingSafeEqual(received, expected);
}

app.post('/webhooks/mursilat', express.raw({ type: 'application/json' }), (req, res) => {
  if (!verifyWaslaSignature(req.body, req.get('X-Wasla-Signature'), SECRET)) {
    return res.status(401).send('invalid signature');
  }
  const event = JSON.parse(req.body.toString('utf8'));
  res.sendStatus(200); // answer fast (within 10s); do the work after

  if (seen.has(event.id)) return; // retries reuse the same event id
  seen.add(event.id);
  if (event.type === 'interactive.reply') {
    console.log(event.data.reference, '→', event.data.reply.id);
  }
});

app.listen(3000);

Most “invalid signature” bugs come from verifying a re-serialized body (JSON.stringify(req.body)) instead of the raw bytes, or from a body-parsing middleware that runs first.

Retries, ordering & idempotency

AttemptWhen
1WhenImmediately
2When+10 seconds
3When+1 minute
4When+5 minutes
5When+15 minutes
6When+30 minutes (≈51 minutes after the first)
  • 2xx = delivered. Other 4xx/5xx, timeouts and connection errors are retried.
  • 410 Gone = “stop sending”: the webhook is turned off immediately and you’re notified. Save the URL again in the Developer tab to turn it back on.
  • X-Wasla-Delivery stays the same across retries of one delivery; a manual resend gets a new one (same event id).
  • Up to 4 requests at a time per URL, so events can arrive out of order. Order by createdAt and make your handler idempotent on id.

Test event

The Send a test event button (Developer tab) sends webhook.test to your URL. Use it to check reachability and your signature code. It is disabled — with the reason shown — while no URL is saved or the webhook is turned off.

Delivery log

The Webhook log in the Developer tab keeps every delivery for 7 days: status, attempt n/6, HTTP status, duration and next retry time. Open a delivery to see the payload, request headers (signature hidden), the first 2 KB of your server’s response, every attempt — and to resend it.

Errors

Errors use one shape. Program against code (stable); message is English text for humans and may change. details gives the field or, for “try later” errors, retryAt / retryAfterSeconds.

Error response
{
  "statusCode": 400,
  "code": "INTERACTIVE_TOO_MANY_BUTTONS",
  "message": [
    "buttons: at most 3 buttons are allowed"
  ],
  "error": "INTERACTIVE_TOO_MANY_BUTTONS",
  "details": {
    "field": "buttons"
  },
  "timestamp": "2026-10-10T12:00:00.000Z",
  "path": "/api/v1/whatsapp/public/interactive/send"
}
CodeHTTPMeaning
INTERACTIVE_INVALID_TYPEHTTP400Meaningtype must be buttons, list or cta_url.
INTERACTIVE_BODY_REQUIREDHTTP400Meaningbody.text is missing.
INTERACTIVE_TEXT_TOO_LONGHTTP400MeaningHeader, body or footer is over its limit.
INTERACTIVE_TITLE_TOO_LONGHTTP400MeaningA button / row / section / CTA title is over its limit.
INTERACTIVE_TOO_MANY_BUTTONSHTTP400MeaningMore than 3 buttons.
INTERACTIVE_NO_OPTIONSHTTP400MeaningNo buttons / rows / CTA given.
INTERACTIVE_TOO_MANY_ROWSHTTP400MeaningMore than 10 list rows.
INTERACTIVE_TOO_MANY_SECTIONSHTTP400MeaningMore than 10 list sections.
INTERACTIVE_DUPLICATE_IDHTTP400MeaningTwo options share an id.
INTERACTIVE_DUPLICATE_TITLEHTTP400MeaningTwo options share a title (typed titles must be distinguishable).
INTERACTIVE_INVALID_IDHTTP400MeaningAn id has characters outside A-Z a-z 0-9 _ . : - or is too long.
INTERACTIVE_INVALID_URLHTTP400MeaningThe CTA URL isn’t a public https:// URL.
INTERACTIVE_INVALID_EXPIRYHTTP400MeaningexpiresInMinutes outside 5–10080.
INTERACTIVE_INVALID_FALLBACKHTTP400Meaningfallback must be numbered or none.
INTERACTIVE_INVALID_LOCALEHTTP400Meaninglocale must be ar or en.
INTERACTIVE_TITLE_REQUIREDHTTP400MeaningA button / row / section / link title is missing.
INTERACTIVE_REFERENCE_TOO_LONGHTTP400Meaningreference over 128 characters.
INTERACTIVE_RESERVED_TITLEHTTP400MeaningAn option title is an opt-out word (e.g. “stop”).
INTERACTIVE_UNEXPECTED_FIELDHTTP400MeaningA field that doesn’t belong to this type (e.g. buttons on a list).
MESSAGE_TYPE_REQUIRED · MESSAGE_TYPE_NOT_SUPPORTEDHTTP400Meaningtype is missing, or can’t be sent (details.reason, see Not possible).
MESSAGE_FIELD_REQUIRED · MESSAGE_FIELD_INVALIDHTTP400MeaningA required field is missing / has an invalid value (details.field, details.reason).
MESSAGE_TEXT_TOO_LONGHTTP400MeaningA text field is over its limit (details.limit).
MESSAGE_UNEXPECTED_FIELDHTTP400MeaningA field of another type, e.g. caption on audio or on a round video note.
MESSAGE_MEDIA_REQUIREDHTTP400MeaningNo media (or file) for a media type.
MESSAGE_MEDIA_NOT_FOUNDHTTP404MeaningUnknown media.id (or uploaded on another number).
MESSAGE_MEDIA_EXPIREDHTTP410MeaningThe upload is older than 24 hours — upload again.
MESSAGE_MEDIA_TOO_LARGEHTTP413MeaningOver the size limit of the type (details.limitBytes).
MESSAGE_MEDIA_TYPE_NOT_ALLOWEDHTTP415MeaningThe file’s real type doesn’t fit the message type (details.detected).
MESSAGE_MEDIA_FETCH_FAILEDHTTP422MeaningThe media URL couldn’t be downloaded safely (details.reason).
MESSAGE_STICKER_INVALIDHTTP400MeaningThe image can’t become a sticker.
MESSAGE_VIDEO_NOTE_TOO_LONGHTTP400MeaningRound video notes are at most 60 seconds.
MESSAGE_CONTACT_INVALIDHTTP400MeaningA contact card is invalid (details.reason, details.index).
MESSAGE_LOCATION_INVALIDHTTP400MeaningLatitude/longitude out of range.
MESSAGE_REPLY_TARGET_NOT_FOUNDHTTP404MeaningreplyTo isn’t a message in this chat.
INVALID_RECIPIENTHTTP400MeaningThe phone number isn’t valid.
API_KEY_REQUIRED · API_KEY_INVALIDHTTP401MeaningMissing or invalid x-api-key.
API_ACCESS_NOT_IN_PLANHTTP403MeaningYour plan doesn’t include API access.
MESSAGES_QUOTA_EXCEEDED · NO_ACTIVE_PLANHTTP403MeaningNo messages left in your plan / no active plan.
API_SCOPE_DISABLEDHTTP403MeaningThe key doesn’t have the needed scope.
IDEMPOTENCY_KEY_REQUIREDHTTP409MeaningSend an Idempotency-Key header.
IDEMPOTENCY_KEY_REUSEDHTTP409MeaningKey already used with a different body.
IDEMPOTENCY_IN_PROGRESSHTTP409MeaningThe first request with this key is still running.
SESSION_NOT_CONNECTEDHTTP400MeaningThe number isn’t connected — check it in Numbers in the dashboard.
API_TEMPORARY_BAN · TOO_MANY_REQUESTSHTTP429MeaningRate limit or temporary block (see retryAfterSeconds).
SAFETY_CONTENT_BLOCKEDHTTP422MeaningContent rule: URL shortener, or the same text to too many new contacts (details.reasons).
SAFETY_SUPPRESSEDHTTP422MeaningThe contact opted out or is on your suppression list.
SAFETY_NUMBER_PAUSEDHTTP423MeaningMursilat paused this number; contact support.
SAFETY_NUMBER_BANNEDHTTP403MeaningThe number is banned; nothing can be sent from it.

Limits

Meta sets each number’s quality rating and messaging limits (how many new customers it can start conversations with per day), and outside the 24-hour customer-service window only Meta-approved templates can be sent. The API rate limits below are ours; Mursilat adds no per-number pacing or daily caps of its own. Sending only to people who expect your messages matters most.

API rate limits (defaults)

LimitDefault
Text / interactive sendsDefault60 per minute per key and per number
Media sendsDefault30 per minute per key and per number
BurstsDefaultMore than 3 sends in 5 seconds are queued (queued: true, 2–30 s delay)
Abuse protectionDefaultMore than 8 sends in 5 seconds → temporary block (429): 10 min, then 1 h, then 24 h
  • URL shorteners (bit.ly …) are blocked — use your own domain.
  • The same text to more than 50 new contacts in 24 hours is blocked — personalise it.
  • Customers who opted out are never messaged (SAFETY_SUPPRESSED).

Tip: buttons are a good way to start a conversation — when the customer answers, the 24-hour customer-service window opens and you can reply freely, not only with templates.

Send a text message (legacy)

Legacy endpoint

Still supported and unchanged. New integrations: POST /whatsapp/public/messages with "type": "text" (Text).

POST /whatsapp/public/message/send — scope send.

FieldTypeNotes
phoneNumberTypestringNotesRequired. International digits, no +.
contentTypestringNotesRequired. The message text.
referenceTypestringNotesOptional, ≤128. Your own id, echoed in message.status.
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/message/send" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: order-1042-shipped" \
  -d '{
  "phoneNumber": "201001234567",
  "content": "Hi Mona, your order #1042 has shipped and arrives tomorrow.",
  "reference": "order-1042"
}'
Response
{
  "success": true,
  "message": "Message sent successfully",
  "sessionId": "cm1abc2def3ghi4jkl5mno6p",
  "phoneNumber": "201001234567",
  "messageId": "3EB0A1B2C3D4E5F60718"
}

During bursts a send may be queued instead of sent at once: the response then has queued: true and estimatedDelayMs. The final result arrives as a message.status webhook.

Send media (legacy)

Legacy endpoint

Still supported and unchanged. New integrations: POST /whatsapp/public/messages with a media type (Media), which adds stickers, voice notes, GIF and round video notes.

POST /whatsapp/public/media/send — scope media. Send JSON with a public mediaUrl, or multipart/form-data with a file.

FieldTypeNotes
phoneNumberTypestringNotesRequired.
mediaTypeTypestringNotesimage · video · document · audio
mediaUrlTypestringNotesPublic https:// URL (or upload file instead).
captionTypestringNotesOptional.
filenameTypestringNotesOptional, for documents.
voiceNoteTypebooleanNotesOptional. Send audio as a voice note.
referenceTypestringNotesOptional, ≤128.
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/media/send" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: order-1042-invoice" \
  -d '{
  "phoneNumber": "201001234567",
  "mediaType": "document",
  "mediaUrl": "https://example.com/invoices/1042.pdf",
  "filename": "invoice-1042.pdf",
  "caption": "Invoice for order #1042",
  "reference": "order-1042"
}'
Upload a file (multipart)
curl -X POST "https://mursilat.com/api/v1/whatsapp/public/media/send" \
  -H "x-api-key: $WASLA_API_KEY" \
  -H "Idempotency-Key: invoice-1042" \
  -F "phoneNumber=201001234567" \
  -F "mediaType=document" \
  -F "filename=invoice-1042.pdf" \
  -F "file=@./invoice-1042.pdf"

Media URLs must be public. Private and internal addresses (localhost, 10.x, 192.168.x …) are rejected.

Migrating from v1 to v2

Webhook version 1 is legacy and deprecated; it will be removed in the future. Existing numbers stay on v1 until you switch; new numbers start on v2. The signature header is the same in both.

v1 (legacy)v2
Eventsv1 (legacy)message.received onlyv2All events, choose which
Bodyv1 (legacy)Old format with the raw WhatsApp message (rawMessage)v2Stable envelope + typed data
User-Agentv1 (legacy)Wasla-Webhooks/1.0v2Wasla-Webhooks/2
Version headerv1 (legacy)—v2X-Wasla-Webhook-Version: 2
Retries & logv1 (legacy)—v26 attempts over ≈51 min, 7-day delivery log, resend
Signaturev1 (legacy)X-Wasla-Signature (same)v2X-Wasla-Signature (same)
  1. Update your receiver to accept both: branch on the X-Wasla-Webhook-Version header (missing = v1).
  2. Handle message.received from data (from, type, text, media …) instead of the raw message.
  3. In the Developer tab switch to version 2, choose your events, and click Send a test event.
  4. Watch the Webhook log for a day, then remove the v1 code.

FAQ

Do I need Meta business verification or the Cloud API?

Mursilat uses the official WhatsApp Cloud API: connect your WhatsApp Business number in Numbers with Meta Embedded Signup.

Will my customers always see the buttons?

Not always. Some phones show interactive messages as plain text. With the default numbered fallback they can still answer by typing the number or the option title, and you get the same interactive.reply either way.

What if the customer types something else?

It arrives as a normal message.received. The interaction stays open until it is answered or expires.

How do I avoid processing an event twice?

Store the event id and skip ones you’ve seen — retries and manual resends reuse it. For sends, always pass an Idempotency-Key.

My webhook was turned off. Why?

Your URL answered 410 Gone. Fix the endpoint, then save the URL again in the Developer tab — it turns back on immediately.

Can Mursilat promise Meta won’t restrict my number?

No. Meta controls quality ratings, messaging limits and restrictions — message people who expect to hear from you, and use approved templates outside the 24-hour window.

Which message types can I send?

Text, images, videos, audio files, voice notes, documents, stickers, locations, contact cards, reply buttons, lists, link buttons and approved templates — all through POST /whatsapp/public/messages. Outside the 24-hour window only templates go through (CLOUD_API_WINDOW_CLOSED otherwise). Polls, events, live location, payments, catalog/order messages, status updates and calls can’t be sent.

Will every phone show every type?

Yes on recent WhatsApp versions — official numbers send native buttons and lists. A buttons / list message over Meta’s limits (more than 3 buttons, titles over 20 characters, more than 10 rows) is sent as numbered text instead, so the customer can always answer.

How long are media links valid?

24 hours. After that download with your API key (scope media).

How can I test without bothering customers?

Use Send a test event for webhooks, and send API messages to your own phone number.

↑ Back to top