length 4–8, ttlSeconds 60–900, maxAttempts 1–10, app name (letters, digits, spaces; no links). Fixed localized text. Max 5 codes per recipient and 200 recipients per account per hour; opted-out numbers are refused.
DescriptionYour unique id for this operation (≤ 191 visible ASCII). A retry with the same key and body returns the first answer with Idempotent-Replayed: true — it never runs twice. Kept 24 h.
X-Request-Idoptional
Typestring
Constraints—
DescriptionOptional: your own request id, echoed back (otherwise we generate req_…). Quote it to support.
Body
Name
Type
Constraints
Description
senderoptional
Typestring
Constraintsone of: number · mursilatdefault number
Description"number": your own number (numberId required). "mursilat": Mursilat's OTP number, paid per code from your wallet.
numberIdoptional
Typestring
Constraints—
DescriptionNumber to act on (id from GET /v2/numbers). A key restricted to some numbers can use only those.
currencyoptional
Typestring
Constraintsone of: EGP · SAR
Descriptionsender "mursilat" only: the wallet that pays (default: a priced wallet that covers the price).
torequired
Typestring
Constraints—
DescriptionRecipient: international digits without + or leading zeros (e.g. 201001234567, 966501234567).
lengthoptional
Typeinteger
Constraints4–8default 6
DescriptionDigits in the code (4–8).
ttlSecondsoptional
Typeinteger
Constraints60–900default 300
DescriptionHow long the code is valid (60–900 s).
maxAttemptsoptional
Typeinteger
Constraints1–10default 5
DescriptionWrong tries before the OTP locks (1–10).
appoptional
Typestring
Constraints≤ 30 chars
DescriptionYour app or shop name in the fixed text: letters, digits and spaces (≤ 30), no links, no domain endings, no runs of 6+ digits.
localeoptional
Typestring
Constraintsone of: ar · endefault ar
DescriptionLanguage of the fixed OTP text.
copyButtonoptional
Typeboolean
Constraintsdefault false
DescriptionAdd a “Copy code” button under the message.
409 · OTP_TEMPLATE_REQUIRED — An official number sends codes only through an approved AUTHENTICATION template.
Create an Authentication template (code + copy button) and wait for Meta’s approval.
Correct the cause before repeating the request.
HTTP 409 · application/json
{
"error": {
"code": "OTP_TEMPLATE_REQUIRED",
"message": "An official number sends codes only through an approved AUTHENTICATION template.",
"docsUrl": "https://mursilat.com/developers/v2/errors#OTP_TEMPLATE_REQUIRED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
429 · OTP_RECIPIENT_RATE_LIMITED — Too many codes to this recipient (5 per hour; with Mursilat's number counted across every account).
Let the user wait; never loop sends.
Retry after addressing the cause.
HTTP 429 · application/json
{
"error": {
"code": "OTP_RECIPIENT_RATE_LIMITED",
"message": "Too many codes to this recipient (5 per hour; with Mursilat's number counted across every account).",
"docsUrl": "https://mursilat.com/developers/v2/errors#OTP_RECIPIENT_RATE_LIMITED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
403 · MESSAGES_QUOTA_EXCEEDED — No messages left in your plan.
Buy a message pack or upgrade.
Correct the cause before repeating the request.
HTTP 403 · application/json
{
"error": {
"code": "MESSAGES_QUOTA_EXCEEDED",
"message": "No messages left in your plan.",
"docsUrl": "https://mursilat.com/developers/v2/errors#MESSAGES_QUOTA_EXCEEDED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
409 · OTP_PLATFORM_DISABLED — Sending codes from Mursilat's number is off right now (details.reason: NOT_CONFIGURED, PAUSED, NUMBER_DISCONNECTED, TEMPLATE_MISSING, NUMBER_NOT_FOUND).
Retry later, or send from your own number (sender "number").
Retry after addressing the cause.
HTTP 409 · application/json
{
"error": {
"code": "OTP_PLATFORM_DISABLED",
"message": "Sending codes from Mursilat's number is off right now (details.reason: NOT_CONFIGURED, PAUSED, NUMBER_DISCONNECTED, TEMPLATE_MISSING, NUMBER_NOT_FOUND).",
"docsUrl": "https://mursilat.com/developers/v2/errors#OTP_PLATFORM_DISABLED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
400 · OTP_BSUID_NOT_SUPPORTED — Codes from Mursilat's number need a phone number; WhatsApp user ids (BSUID) are not supported for authentication messages.
Send to the phone number with country code.
Correct the cause before repeating the request.
HTTP 400 · application/json
{
"error": {
"code": "OTP_BSUID_NOT_SUPPORTED",
"message": "Codes from Mursilat's number need a phone number; WhatsApp user ids (BSUID) are not supported for authentication messages.",
"docsUrl": "https://mursilat.com/developers/v2/errors#OTP_BSUID_NOT_SUPPORTED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
422 · OTP_COUNTRY_NOT_SUPPORTED — Mursilat's number does not send codes to this country yet.
Send from your own number, or ask support to add the country.
Correct the cause before repeating the request.
HTTP 422 · application/json
{
"error": {
"code": "OTP_COUNTRY_NOT_SUPPORTED",
"message": "Mursilat's number does not send codes to this country yet.",
"docsUrl": "https://mursilat.com/developers/v2/errors#OTP_COUNTRY_NOT_SUPPORTED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
422 · OTP_PRICE_UNAVAILABLE — No price for this country in a currency your account has a wallet in.
Top up a wallet in a priced currency (EGP for Egypt, SAR for Saudi Arabia), or pass currency.
Correct the cause before repeating the request.
HTTP 422 · application/json
{
"error": {
"code": "OTP_PRICE_UNAVAILABLE",
"message": "No price for this country in a currency your account has a wallet in.",
"docsUrl": "https://mursilat.com/developers/v2/errors#OTP_PRICE_UNAVAILABLE",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
402 · WALLET_INSUFFICIENT_FUNDS — Your wallet balance is lower than the price of the code. Nothing was sent or charged.
Top up the wallet (Billing → Wallet) and retry.
Correct the cause before repeating the request.
HTTP 402 · application/json
{
"error": {
"code": "WALLET_INSUFFICIENT_FUNDS",
"message": "Your wallet balance is lower than the price of the code. Nothing was sent or charged.",
"docsUrl": "https://mursilat.com/developers/v2/errors#WALLET_INSUFFICIENT_FUNDS",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
429 · OTP_KEY_RATE_LIMITED — Too many codes from this API key in a minute (Mursilat's number).
Wait Retry-After seconds; never loop sends.
Retry after addressing the cause.
HTTP 429 · application/json
{
"error": {
"code": "OTP_KEY_RATE_LIMITED",
"message": "Too many codes from this API key in a minute (Mursilat's number).",
"docsUrl": "https://mursilat.com/developers/v2/errors#OTP_KEY_RATE_LIMITED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
409 · IDEMPOTENCY_KEY_REUSED — This Idempotency-Key was used with a different request.
Use a new key for a new request.
Correct the cause before repeating the request.
HTTP 409 · application/json
{
"error": {
"code": "IDEMPOTENCY_KEY_REUSED",
"message": "This Idempotency-Key was used with a different request.",
"docsUrl": "https://mursilat.com/developers/v2/errors#IDEMPOTENCY_KEY_REUSED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
409 · IDEMPOTENCY_IN_PROGRESS — The first request with this key is still running.
Retry in a few seconds.
Retry after addressing the cause.
HTTP 409 · application/json
{
"error": {
"code": "IDEMPOTENCY_IN_PROGRESS",
"message": "The first request with this key is still running.",
"docsUrl": "https://mursilat.com/developers/v2/errors#IDEMPOTENCY_IN_PROGRESS",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
403 · SCOPE_REQUIRED — The key lacks the scope of this endpoint.
Add the scope in details.required to the key.
Correct the cause before repeating the request.
HTTP 403 · application/json
{
"error": {
"code": "SCOPE_REQUIRED",
"message": "The key lacks the scope of this endpoint.",
"docsUrl": "https://mursilat.com/developers/v2/errors#SCOPE_REQUIRED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
Copy the key again from Settings → API keys (it is shown only once; create a new one if lost).
Correct the cause before repeating the request.
HTTP 401 · application/json
{
"error": {
"code": "API_KEY_INVALID",
"message": "The API key is not valid.",
"docsUrl": "https://mursilat.com/developers/v2/errors#API_KEY_INVALID",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
sender "mursilat" (no number of your own): { "sender": "mursilat", "to": "201001234567" }. The code goes out from Mursilat's OTP number with its approved AUTHENTICATION template (copy-code button, ar/en); numberId is ignored and the plan message quota is not used. The price of the recipient's country is debited from your wallet when the send is accepted (Egypt EGP 0.40, Saudi Arabia SAR 0.08; prices can change) and refunded automatically if Meta rejects it or later reports it failed. The answer adds price { country, currency, amountMinor } and wallet { currency, balanceAfterMinor }; numberId is null. Phone numbers only (no BSUID). Limits: 5 codes per phone per hour across the platform, 60 per API key per minute, 10,000 per account per day.
Verify, status and the otp.verified webhook are the same for both senders. With sender "mursilat", otp.verified goes to your account-level webhook (Settings → API → Webhooks).
OTPs are limited to 5 codes per recipient and 200 recipients per account per hour. Opted-out recipients are refused.