Quickstart: your first message in 3 steps
Create an API key, send a WhatsApp message from your own number and receive your first signed webhook — in about ten minutes.
Connect an official number and use a plan with API access. Send a WhatsApp message from your test phone to the connected number first. This opens the 24-hour window for the text below.
1. Identify your sending number
In Settings → API keys create an account key for the connected number with numbers:read, messages:send, messages:read and webhooks:write. On your server set WASLA_API_KEY to the key shown once. Run both requests below. Copy the connected number’s data[].id into NUMBER_ID.
curl -X GET "https://mursilat.com/api/v2/me" \
-H "Authorization: Bearer $WASLA_API_KEY"const res = await fetch('https://mursilat.com/api/v2/me', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.WASLA_API_KEY}`,
},
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
console.log(data);import os
import requests
headers = {"Authorization": f"Bearer {os.environ['WASLA_API_KEY']}"}
res = requests.get(
"https://mursilat.com/api/v2/me",
headers=headers,
timeout=30,
)
data = res.json()
if not res.ok:
raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
print(data)<?php
$ch = curl_init('https://mursilat.com/api/v2/me');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('WASLA_API_KEY'),
],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status >= 400) { throw new Exception($data['error']['code'] . ': ' . $data['error']['message']); }
print_r($data);curl -X GET "https://mursilat.com/api/v2/numbers" \
-H "Authorization: Bearer $WASLA_API_KEY"const res = await fetch('https://mursilat.com/api/v2/numbers', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.WASLA_API_KEY}`,
},
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
console.log(data);import os
import requests
headers = {"Authorization": f"Bearer {os.environ['WASLA_API_KEY']}"}
res = requests.get(
"https://mursilat.com/api/v2/numbers",
headers=headers,
timeout=30,
)
data = res.json()
if not res.ok:
raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
print(data)<?php
$ch = curl_init('https://mursilat.com/api/v2/numbers');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('WASLA_API_KEY'),
],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status >= 400) { throw new Exception($data['error']['code'] . ': ' . $data['error']['message']); }
print_r($data);2. Connect your receipt handler
Set WEBHOOK_URL to your public HTTPS receiver. On first setup, store the returned secret for signature verification. Updating the subscription replaces its event list. Use a test number or include any events you already consume.
API=https://mursilat.com/api/v2
curl -sS -X PUT "$API/numbers/$NUMBER_ID/webhook" \
-H "Authorization: Bearer $WASLA_API_KEY" \
--json "$(jq -n --arg url "$WEBHOOK_URL" '{url:$url, events:["message.status"]}')"The shell examples use jq and curl with --json support. Implement signature verification, then send a test. Continue when your receiver gets webhook.test and returns HTTP 204.
curl -sS -X POST "$API/numbers/$NUMBER_ID/webhook/test" -H "Authorization: Bearer $WASLA_API_KEY"3. Send one message and follow its receipt
Set TO to your test phone in international digits. Generate a key once per new message. If the response is lost, reuse that key and the same body for the retry.
SEND_KEY=$(uuidgen)
curl -sS "$API/messages" \
-H "Authorization: Bearer $WASLA_API_KEY" \
-H "Idempotency-Key: $SEND_KEY" \
--json "$(jq -n --arg n "$NUMBER_ID" --arg to "$TO" '{numberId:$n,to:$to,type:"text",text:"Hello from Mursilat"}')"{
"id": "3EB0A1B2C3D4E5F60718",
"numberId": "cm1abcd2345efgh6789ijkl",
"status": "sent",
"type": "text",
"reference": null,
"scheduledAt": null,
"interactionId": null,
"format": null,
"fallbackIncluded": null,
"estimatedDelayMs": null
}Set MESSAGE_ID to id from your response. Match it to data.messageId in the signed message.status event. sent means submission, delivered confirms delivery, read is a read receipt. For failed inspect data.error.code before another send.
{
"id": "evt_5f0c2b7d9e1a4c3b8a6f2d10",
"type": "message.status",
"apiVersion": "2026-10",
"createdAt": "2026-10-13T08:00:03.000Z",
"sessionId": "cm1abcd2345efgh6789ijkl",
"number": "201001234567",
"data": {
"messageId": "3EB0A1B2C3D4E5F60718",
"reference": null,
"to": "201099887766",
"status": "delivered",
"error": null,
"timestamp": "2026-10-13T08:00:05.000Z"
}
}curl -sS "$API/messages/$MESSAGE_ID" -H "Authorization: Bearer $WASLA_API_KEY"{
"id": "3EB0A1B2C3D4E5F60718",
"numberId": "cm1abcd2345efgh6789ijkl",
"type": "text",
"reference": null,
"to": "2010****4567",
"status": "read",
"scheduledAt": null,
"error": null,
"interactionId": null,
"timeline": [
{
"status": "queued",
"at": "2026-10-13T08:00:00.000Z"
},
{
"status": "sent",
"at": "2026-10-13T08:00:01.200Z"
},
{
"status": "delivered",
"at": "2026-10-13T08:00:02.900Z"
},
{
"status": "read",
"at": "2026-10-13T08:03:10.000Z"
}
],
"createdAt": "2026-10-13T08:00:00.000Z",
"updatedAt": "2026-10-13T08:03:10.000Z"
}Use timeline to reconcile a missed receipt. See message.status.