OTP in 5 minutes with Mursilat’s number
No WhatsApp number of your own yet? Send verification codes from Mursilat’s OTP number and pay per code from your wallet.
Add "sender": "mursilat" to POST /v2/otp and the code goes out from Mursilat’s dedicated OTP number, with its approved authentication template (Arabic or English, with a copy-code button). You don’t connect a number or set up anything at Meta: each code is paid from your Mursilat wallet.
1. Top up your wallet
Open Billing → Wallet and top up in the currency of the country you send to. Prices per code are shown in Settings → API keys → OTP from Mursilat’s number.
| Destination | Price per code |
|---|---|
| Egypt (+20) | Price per codeEGP 0.40 |
| Saudi Arabia (+966) | Price per codeSAR 0.08 |
2. Create a key with the `otp` scope
In Settings → API keys, create a key with the otp scope. See Authentication.
3. Send the code
curl -X POST https://mursilat.com/api/v2/otp \
-H "Authorization: Bearer $MURSILAT_KEY" \
-H "Idempotency-Key: signup-7f3a" \
-H "Content-Type: application/json" \
-d '{"sender":"mursilat","to":"201001234567","locale":"ar"}'{
"otpId": "otp_8f2c1d9a7b3e4f56a1b2c3d4",
"sender": "mursilat",
"numberId": null,
"to": "2010****4567",
"status": "pending",
"length": 6,
"maxAttempts": 5,
"expiresAt": "2026-11-18T08:05:00.000Z",
"messageId": "wamid.HBgM…",
"price": {
"country": "EG",
"currency": "EGP",
"amountMinor": 40
},
"wallet": {
"currency": "EGP",
"balanceAfterMinor": 9960
}
}4. Verify what the person typed
Exactly like codes from your own number: POST /v2/otp/{otpId}/verify with { "code": "048213" }. The otp.verified webhook goes to your account-level webhook.
curl -X POST "https://mursilat.com/api/v2/otp/otp_8f2c1d9a7b3e4f56a1b2c3d4/verify" \
-H "Authorization: Bearer $WASLA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "048213"
}'const res = await fetch('https://mursilat.com/api/v2/otp/otp_8f2c1d9a7b3e4f56a1b2c3d4/verify', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WASLA_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"code": "048213"
}),
});
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.post(
"https://mursilat.com/api/v2/otp/otp_8f2c1d9a7b3e4f56a1b2c3d4/verify",
headers=headers,
json={
"code": "048213"
},
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/otp/otp_8f2c1d9a7b3e4f56a1b2c3d4/verify');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('WASLA_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'code' => '048213'
], JSON_UNESCAPED_UNICODE),
]);
$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);What you pay
- The price is taken from your wallet when the code is accepted for sending (amounts are in minor units:
40= EGP 0.40). - If WhatsApp rejects the code, or later reports it failed, the price goes back to your wallet automatically, once.
- Codes from Mursilat’s number don’t use your plan’s messages.
- Not enough balance:
402 WALLET_INSUFFICIENT_FUNDS, nothing is sent or charged.
Limits and errors
| Situation | Answer |
|---|---|
| More than 5 codes to one phone in an hour | Answer429 OTP_RECIPIENT_RATE_LIMITED |
| More than 60 codes per key in a minute | Answer429 OTP_KEY_RATE_LIMITED |
| More than 10,000 codes per account in a day | Answer429 OTP_ACCOUNT_DAILY_LIMIT |
| Country without a price | Answer422 OTP_COUNTRY_NOT_SUPPORTED |
| No wallet in a priced currency | Answer422 OTP_PRICE_UNAVAILABLE |
| WhatsApp user id (BSUID) instead of a phone | Answer400 OTP_BSUID_NOT_SUPPORTED |
| Service paused or not set up | Answer409 OTP_PLATFORM_DISABLED (see details.reason) |
Your own name on the code
Codes from Mursilat’s number show Mursilat as the sender. When you are ready to send under your own name, connect your number and send without sender (see OTP done right).