SMS API reference
Send OTP, transactional and marketing SMS over HTTPS. Requests are accepted in milliseconds, delivered through WAYVZ routes, and tracked to the handset with per-message status and signed delivery webhooks.
All endpoints are under /v1. Timestamps are ISO 8601 in UTC. Phone numbers are international numbers. A send request returns 202 Accepted once the message is stored and queued; delivery is reported afterwards.
Quick start
Send your first SMS with one request. Replace the key and the number with your own.
curl https://api.wayvzgroup.com/v1/messages \ -H "Authorization: Bearer $WAYVZ_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "messages": [{ "sender": "WAYVZ", "destinations": [{ "to": "+971501234567", "messageId": "login-88123" }], "content": { "text": "Your verification code is 482913. It expires in 5 minutes." } }] }'
const res = await fetch("https://api.wayvzgroup.com/v1/messages", { method: "POST", headers: { "Authorization": `Bearer ${process.env.WAYVZ_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ messages: [{ sender: "WAYVZ", destinations: [{ to: "+971501234567", messageId: "login-88123" }], content: { text: "Your verification code is 482913. It expires in 5 minutes." } }] }) }); const result = await res.json(); // 202: result.messages[0].messageId
import os, requests res = requests.post( "https://api.wayvzgroup.com/v1/messages", headers={ "Authorization": f"Bearer {os.environ['WAYVZ_API_KEY']}", }, json={ "messages": [{ "sender": "WAYVZ", "destinations": [{"to": "+971501234567", "messageId": "login-88123"}], "content": {"text": "Your verification code is 482913. It expires in 5 minutes."}, }] }, timeout=10, ) print(res.status_code, res.json()) # 202
using var http = new HttpClient { BaseAddress = new Uri("https://api.wayvzgroup.com") }; http.DefaultRequestHeaders.Authorization = new("Bearer", Environment.GetEnvironmentVariable("WAYVZ_API_KEY")); using var req = new HttpRequestMessage(HttpMethod.Post, "/v1/messages") { Content = JsonContent.Create(new { messages = new[] { new { sender = "WAYVZ", destinations = new[] { new { to = "+971501234567", messageId = "login-88123" } }, content = new { text = "Your verification code is 482913. It expires in 5 minutes." } } } }) }; var res = await http.SendAsync(req); // 202 Accepted
Authentication
Every request carries your API key in the Authorization header. Requests over plain HTTP are refused.
Authorization: Bearer <your API key>- Live keys start with
sk_live_. Sandbox keys start withsk_test_and never send or charge; see Sandbox. - Keys are issued by WAYVZ per account. An account can hold several keys, so a key can be rotated without downtime: start using the new key, then ask us to revoke the old one.
- WAYVZ stores only a hash of each key. A lost key cannot be recovered; we issue a new one.
- Keep keys on your servers. Never put them in mobile apps, browsers or source control.
- IP allowlist (optional): WAYVZ can restrict your live keys to your own server addresses or ranges (IPv4 or IPv6). A live key used from any other address is refused with
403 IP_NOT_ALLOWED, so a leaked key cannot be used elsewhere. Sandbox keys are not restricted. Send your addresses to your account manager.
| Response | Meaning |
|---|---|
| 401 UNAUTHORIZED | The key is missing, unknown, revoked or expired. |
| 403 SUBMISSION_NOT_ENABLED_FOR_CLIENT | The key is valid, but sending is not enabled for the account yet. |
| 403 IP_NOT_ALLOWED | The account has an IP allowlist and this request did not come from one of its addresses. |
| 503 AUTH_SERVICE_UNAVAILABLE | Authentication could not be checked. Retry shortly. |
Send messages
Sends one or more messages, each to one or more destinations, in a single request. Every destination becomes its own message with its own messageId and status. The request as a whole is a bulk with one bulkId.
Headers
| Header | Description |
|---|---|
| Authorization required | Bearer <API key> |
| Content-Type required | application/json |
| Idempotency-Key optional | Not needed when you set messageId. For clients that prefer a request-level key: 8 to 128 printable ASCII characters, and repeating a request with the same key never sends twice. See Safe retries. |
Body
| Field | Description |
|---|---|
| messages required array, 1 to 100 | The messages to send. |
| messages[].sender required string | Sender ID: up to 11 letters, digits or spaces, or a number of up to 15 digits. It must be registered for the destination country. See Sender IDs. |
| messages[].destinations required array | Recipients of this message. Up to 1,000 destinations per request in total. |
| destinations[].to required string | International number: +971501234567, 00971501234567 or 971501234567. |
| destinations[].messageId string, max 200 | Your own ID for this message: letters, digits and . _ : -. Unique per account. When set, it is the messageId in every response, lookup, report and webhook. A repeat is rejected for that destination with REJECTED_DUPLICATE_MESSAGE_ID. |
| destinations[].clientReference string, max 128 | Your own reference, returned in status responses and webhooks. |
| destinations[].parameters object | Values for {{name}} placeholders in the text, for this destination only. See Personalisation. |
| messages[].content.text required string | Message text, 1 to 1,600 characters and at most 10 parts. Encoding is chosen automatically. See Encoding. |
| messages[].webhooks.delivery.url string | Public https:// URL that receives a delivery webhook when each message reaches a final status. messages[].notifyUrl is accepted as a shorter alias. |
| messages[].webhooks.delivery.notify boolean | false sends no webhook for this message; collect the result from Delivery reports instead. |
| messages[].callbackData string, max 4,000 | Any text you want back, such as JSON with your order ID. Returned unchanged in lookups, reports and webhooks. webhooks.callbackData is accepted too. |
| options.type string | transactional (default) for OTP and service messages, or marketing. Transactional traffic is always sent first. |
| options.schedule.bulkId string, max 100 | Your own ID for the whole request. Unique per account: a second request with the same value returns 409 BULK_ID_CONFLICT and sends nothing. |
| options.schedule.sendAt ISO 8601 | Send later, up to 180 days ahead. Omit to send now. |
| options.schedule.sendingSpeedLimit object | { "amount": 600, "timeUnit": "MINUTE" }. Spreads a bulk evenly. timeUnit is MINUTE, HOUR or DAY. |
| options.validityPeriod object | { "amount": 5, "timeUnit": "MINUTES" }. How long WAYVZ may keep trying to send. 30 seconds to 48 hours; default 48 hours. timeUnit is SECONDS, MINUTES or HOURS. See Validity. |
| options.deliveryTimeWindow object | Only send inside these hours (UTC): { "days": ["MONDAY", ...], "from": { "hour": 9, "minute": 0 }, "to": { "hour": 20, "minute": 0 } }. At least one hour long. Omit days for every day. |
{
"messages": [
{
"sender": "WAYVZ",
"destinations": [
{ "to": "+971501234567", "messageId": "login-88123" },
{ "to": "+966551234567", "messageId": "login-88124" }
],
"content": { "text": "Your verification code is 482913. It expires in 5 minutes." },
"webhooks": { "delivery": { "url": "https://hooks.example.com/sms/status" } },
"callbackData": "user=88123"
}
],
"options": {
"type": "transactional",
"validityPeriod": { "amount": 5, "timeUnit": "MINUTES" }
}
}Response 202 Accepted
{
"bulkId": "4c334d91-8821-443a-ba76-37d4457d7351",
"messages": [
{
"messageId": "login-88123",
"wayvzMessageId": "ffcc1982-5b00-4e18-9588-370656b563e8",
"to": "971501234567",
"status": { "groupId": 1, "groupName": "PENDING", "id": 26, "name": "PENDING_ACCEPTED",
"description": "Message accepted and queued for sending." },
"error": null,
"smsCount": 1,
"encoding": "GSM7",
"clientReference": "login-88123"
},
// ... one entry per destination, in request order
]
}messageId is your ID when you sent one, otherwise the ID WAYVZ created. wayvzMessageId is always WAYVZ's ID; quote it to support. bulkId follows the same rule.
REJECTED and smsCount 0. It is not sent or charged. Problems with the request itself (missing sender, empty text, malformed JSON) return 400 and nothing is stored.Estimate parts
Takes the same body as Send messages and returns the encoding and number of SMS parts per destination, plus any destinations that would be rejected. Nothing is stored or sent. Use it to check templates, especially Arabic text, before going live.
{
"totalSmsCount": 4,
"messages": [
{ "index": 0, "encoding": "GSM7", "smsCountPerDestination": 1, "destinations": 1 },
{ "index": 1, "encoding": "UCS2", "smsCountPerDestination": 3, "destinations": 1 }
],
"rejectedDestinations": []
}Message status
Returns the current status of one message, by your messageId or WAYVZ's. Webhooks or delivery reports are the recommended way to receive results; use this endpoint for lookups and reconciliation.
{
"messageId": "order-55120-sms",
"wayvzMessageId": "83466213-de8d-4df7-80c3-979a400ea1d7",
"bulkId": "9a1c5e07-3f6b-4d2a-9c11-6b8e2f4d7a90",
"to": "971501234567",
"from": "WAYVZ",
"status": { "groupId": 3, "groupName": "DELIVERED", "id": 5, "name": "DELIVERED_TO_HANDSET",
"description": "Message delivered to the handset." },
"error": null,
"smsCount": 3,
"partsSent": 3,
"partsDelivered": 3,
"encoding": "GSM7",
"clientReference": "order-55120",
"callbackData": "order=55120",
"price": { "pricePerMessage": 0.135, "currency": "EUR" },
"createdAt": "2026-11-09T15:12:04.117Z",
"sentAt": "2026-11-09T15:12:04.902Z",
"doneAt": "2026-11-09T15:12:43.350Z",
"validUntil": "2026-11-11T15:12:04.117Z"
}price is what the message costs on your account: every part, in your account currency (USD or EUR). It appears once the message reaches a final status; messages that were not sent carry no price.
A message that does not exist, or belongs to another account, returns 404 NOT_FOUND.
Bulk status
Returns the bulk's settings, a summary of every message by status with the total price, and the status of up to 1,000 of its messages, in request order, using the same message fields as above. messagesTruncated is true when the bulk holds more. Use your bulkId or WAYVZ's.
{
"bulkId": "9a1c5e07-3f6b-4d2a-9c11-6b8e2f4d7a90",
"wayvzBulkId": "9a1c5e07-3f6b-4d2a-9c11-6b8e2f4d7a90",
"type": "marketing",
"sendAt": "2026-11-20T09:00:00Z",
"sendingSpeedPerMinute": 600,
"messageCount": 2400,
"createdAt": "2026-11-18T10:41:27.004Z",
"summary": {
"pending": 0, "delivered": 2361, "failed": 39,
"byStatus": [ { "groupName": "DELIVERED", "name": "DELIVERED_TO_HANDSET", "messages": 2361, "smsCount": 2361 } ],
"price": { "total": 106.245, "currency": "EUR" }
},
"messages": [ /* message objects */ ],
"messagesTruncated": true
}Search messages
Lists your messages, newest first, using the same message fields as Message status. All filters are optional and can be combined. When nextCursor is not null, pass it back as cursor to get the next page.
| Query | Description |
|---|---|
| since ISO 8601 | Created at or after this time (UTC). |
| until ISO 8601 | Created before this time (UTC). |
| status string | Status groups, comma separated: PENDING, DELIVERED, UNDELIVERABLE, EXPIRED, REJECTED. |
| bulkId string | Your bulkId or WAYVZ's. |
| to string | Recipient number, in any of the accepted formats. |
| limit 1 to 1,000 | Messages per page. Default 50. |
| cursor string | nextCursor from the previous page. |
GET /v1/messages?since=2026-11-10T00:00:00Z&status=UNDELIVERABLE,REJECTED&limit=100
{
"results": [ /* message objects, newest first */ ],
"nextCursor": "AQAAAAAAAAA"
}Cancel a bulk
Cancels every message of the bulk that has not been sent yet, for example scheduled or speed-limited messages. Messages already handed to the network are not affected. Cancelled messages get status REJECTED_CANCELLED and are not charged.
{ "bulkId": "9a1c5e07-3f6b-4d2a-9c11-6b8e2f4d7a90", "cancelled": 1735 }Delivery reports
The pull alternative to webhooks, for systems that cannot receive calls. Returns final results of the last 48 hours that you have not collected yet, oldest first, in the same shape as the webhook body. Each result is returned once: call again to get the next ones, until results is empty. Pulling does not stop webhooks; use one or the other per message (set webhooks.delivery.notify to false to pull only).
| Query | Description |
|---|---|
| bulkId string | Only results of this bulk (your ID or WAYVZ's). |
| messageId string | Only this message. |
| limit 1 to 1,000 | Maximum results per call. Default 50. |
{ "results": [ /* one object per message, as in the webhook body */ ] }Send a code
One-time codes for sign-up, login and payments, without storing or comparing codes yourself. WAYVZ generates the code, sends it by SMS through the same routes, prices and delivery reports as any message, and checks it for you. The SMS is only sent while the code is valid. A new code to the same number cancels the previous one. To protect you from abuse and SMS pumping, each number gets at most 5 codes per hour, at least 30 seconds apart (429 VERIFY_RATE_LIMITED with Retry-After). Verify is enabled per service; contact WAYVZ support to switch it on.
| Field | Description |
|---|---|
| to required string | Mobile number in international format, e.g. 966501234567. |
| sender required string | Your registered sender ID. |
| language string | en (default) or ar for the standard text. |
| appName string | Your brand, shown in the standard text, e.g. "482913 is your verification code for noon". |
| template string | Your own text instead, up to 480 characters. Must contain {code}; may use {minutes} and {app}. |
| codeLength 4 to 10 | Digits in the code. Default 6. |
| expiresIn 60 to 1800 | Seconds the code stays valid. Default 300. |
| androidAppHash string | Your app's 11-character hash: Android reads the code automatically (SMS Retriever). |
| webOtpDomain string | Your site's domain: mobile browsers fill in the code automatically (Web OTP). Use this or androidAppHash, not both. |
| clientReference string | Your own reference, up to 128 characters. |
{ "verificationId": "5f0c2a8e-1b7d-4c3e-9a6f-2d8b7e4c1a90", "to": "966501234567",
"status": "PENDING", "expiresAt": "2026-11-18T10:05:00Z", "attemptsAllowed": 5,
"wayvzMessageId": "c3d1e5f7-2a4b-4c6d-8e9f-0a1b2c3d4e5f", "smsCount": 1 }The code is never returned. Sandbox keys are the exception: nothing reaches a phone, so the response includes sandboxCode for testing.
Check a code
Send the code the user typed: { "code": "482913" }. valid is true exactly once, on the check that approves the code; checking again returns valid: false with status APPROVED. Each wrong code uses one attempt; after 5 the status is MAX_ATTEMPTS_REACHED and the code no longer works.
{ "verificationId": "5f0c2a8e-1b7d-4c3e-9a6f-2d8b7e4c1a90", "valid": true, "status": "APPROVED",
"attemptsUsed": 1, "attemptsLeft": 4, "expiresAt": "2026-11-18T10:05:00Z" }Statuses: PENDING, APPROVED, EXPIRED, CANCELED, MAX_ATTEMPTS_REACHED, FAILED (the SMS could not be sent).
Verification status
The verification and the delivery status of its SMS (sms.status, sms.error). To stop a code before it is used: POST /v1/verify/{verificationId}/cancel.
Sandbox
Build and test your integration without sending real SMS or paying for them. A sandbox key starts with sk_test_ instead of sk_live_; ask WAYVZ for one. With it, every endpoint works exactly as in live: scheduling, speed limits, validity, cancel, search, reports and signed webhooks. Messages are never handed to a network and are never charged, and responses carry the header X-Wayvz-Environment: sandbox.
Sandbox and live data are kept apart: a sandbox key never sees live messages and a live key never sees sandbox messages. Your messageId and bulkId values are unique per environment. A sandbox key works before your account is switched on for live sending.
A sandbox message is "delivered" about 5 seconds after it is sent. To test your error handling, send to a number ending in one of these four digits:
| Number ends in | Result |
|---|---|
| 9901 | REJECTED_ROUTE_NOT_AVAILABLE when sending. |
| 9902 | Sent, then UNDELIVERABLE_REJECTED_OPERATOR. |
| 9903 | Sent, then EXPIRED_DLR_UNKNOWN (no final report). |
| anything else | Sent, then DELIVERED_TO_HANDSET. |
Numbers must still be valid numbers on a network WAYVZ serves, for example +971501239901.
OpenAPI and SDKs
The whole API is described in OpenAPI 3 at https://api.wayvzgroup.com/openapi.json (public, no key needed).
- Postman: Import, then Link, and paste the URL above. You get every endpoint ready to call; set your key under Authorization as a Bearer token.
- Client library in your language: generate one from the same URL with OpenAPI Generator, for example
openapi-generator-cli generate -i https://api.wayvzgroup.com/openapi.json -g python -o wayvz-sms. Other generators:typescript-fetch,java,csharp,go,php.
Use with Claude
Connect your WAYVZ account to Claude and work with your SMS in plain language: check what happened to a message or a campaign, find out why messages failed, preview a text, and send it after you confirm. Claude talks to WAYVZ through a connector at https://api.wayvzgroup.com/mcp.
Connect.
- In Claude, open Settings, then Connectors, and add WAYVZ SMS. If it is not listed for you yet, choose Add custom connector and enter the URL
https://api.wayvzgroup.com/mcp. - Click Connect. A WAYVZ page opens. Paste your WAYVZ API key and choose the access you want:
- View only: check messages, delivery and failures, and preview texts. Claude cannot send.
- View and send: also send SMS. Every send needs a preview first and your confirmation in Claude.
- Click Connect. You return to Claude, ready to use it.
Your API key is entered on the WAYVZ page only and is never shown to Claude or stored by it. Use a sandbox key (sk_test_) to try it: nothing reaches a phone and nothing is charged.
What Claude can do.
| Tool | What it does | Changes anything |
|---|---|---|
| list_messages | Your recent messages, newest first, filtered by status, recipient number or campaign, up to the last 30 days. | No |
| get_message | The status and delivery history of one message. | No |
| get_bulk | A campaign summary: pending, delivered and failed messages, SMS parts and total price. | No |
| explain_failures | Why messages failed, over the last 7 days at most or for one campaign, grouped by reason and country, with what to do next. | No |
| preview_sms | Shows encoding, parts and any invalid numbers for a text before sending. Nothing is sent or stored. | No |
| send_sms | Sends the previewed text, only with the confirmation from preview_sms and only with View and send access. At most 100 recipients per send; the same confirmation never sends twice. | Yes |
Try asking: "How did yesterday's campaign do?", "Why did messages to Egypt fail this week?", "Check the status of the last message to 966501234567", "Preview this text in Arabic and tell me how many SMS parts it uses".
Disconnect. Remove the connector in Claude, or revoke the API key in your WAYVZ account. A revoked key cuts Claude off at its next call. The connection only works on the connector; it cannot be used to call the REST API.
Messages sent from Claude are normal messages: same routes, prices, delivery reports and webhooks as the API. See the privacy policy for what the connector stores, and the terms of service.
Personalisation, validity and sending hours
Personalisation. Write placeholders in the text as {{name}} and give each destination its own parameters. One request can then send a different text to every recipient. Parts and price are counted on each final text. A destination without parameters gets the text as written; a destination with parameters must supply every placeholder, or the request returns 400 MISSING_PARAMETER.
{
"messages": [ {
"sender": "WAYVZ",
"content": { "text": "Hi {{{{name}}}}, your order {{{{order}}}} is out for delivery." },
"destinations": [
{ "to": "+971501234567", "parameters": { "name": "Sara", "order": "N-5512" } },
{ "to": "+966551234567", "parameters": { "name": "Omar", "order": "N-5513" } }
]
} ]
}Validity. options.validityPeriod limits how long WAYVZ may keep a message waiting, for example behind a speed limit or during a retry. When it runs out before the message reaches the network, the message ends as EXPIRED_EXPIRED and is not charged. Set it short for codes that expire: a 5 minute OTP should have a 5 minute validity. The period starts when the message is due to go out (after sendAt, the speed limit and the sending hours).
Sending hours. options.deliveryTimeWindow holds messages until the next allowed time, in UTC. Combine it with a schedule and a speed limit for campaigns that must respect local quiet hours.
Safe retries
Networks fail: a request may time out after WAYVZ has already accepted it. Give every destination your own messageId (for example your OTP request ID) and you can retry safely: a messageId that was already accepted is not sent again and comes back as REJECTED_DUPLICATE_MESSAGE_ID. Check the first message with GET /v1/messages/{messageId}.
As an alternative, a request can carry an optional Idempotency-Key header, which replays the whole original response:
- Same key, same body: returns the original
202response, with the samebulkIdandmessageIdvalues and the headerIdempotent-Replayed: true. Nothing is sent again. - Same key, different body:
409 IDEMPOTENCY_CONFLICT. Nothing is sent. - Concurrent duplicates: if the same request arrives several times at once, exactly one bulk is created and every caller gets the same answer.
Message IDs and keys are scoped to your account. With neither, a retried request is treated as a new request and is sent again.
Encoding and message length
WAYVZ picks the encoding from your text. If every character exists in the GSM 7-bit alphabet the message uses GSM-7; otherwise, for example with Arabic, it uses UCS-2. Longer texts are split into parts that the handset joins back into one message. Each part is billed as one SMS.
| Encoding | Single SMS | Per part when longer | Typical text |
|---|---|---|---|
| GSM-7 | 160 characters | 153 characters | English and most Latin text |
| UCS-2 | 70 characters | 67 characters | Arabic, or any text with a character outside GSM-7 |
- A message may use at most 10 parts (1,530 GSM-7 or 670 UCS-2 characters).
- The GSM-7 characters
^ { } \ [ ] ~ | €count as two characters each. - A single Arabic letter, or a character such as
’or“, switches the whole message to UCS-2 and can double the part count. Plain quotes and apostrophes keep GSM-7. - Emoji are not supported and return
400 UNSUPPORTED_TEXT. - The
smsCountandencodingfields of every response show exactly what was used. Estimate parts checks text without sending.
Traffic types and scheduling
Transactional (the default) is for OTP, login codes, order and delivery updates. It always goes first: a large marketing bulk never delays a transactional message.
Marketing is for promotions and campaigns. Use options.type = "marketing", together with a schedule and a speed limit for large audiences.
{
"messages": [ { "sender": "WAYVZ", "destinations": [ /* up to 1,000 per request */ ],
"content": { "text": "Weekend sale: 20% off selected items until Sunday." } } ],
"options": {
"type": "marketing",
"schedule": {
"sendAt": "2026-11-20T09:00:00Z",
"sendingSpeedLimit": { "amount": 600, "timeUnit": "MINUTE" }
}
}
}Marketing messages are subject to each country's rules on content, opt-out and sending hours. Talk to your WAYVZ account manager before your first campaign in a new country.
Sender IDs and numbers
Sender ID. Alphanumeric, up to 11 characters (letters, digits, spaces and common punctuation), or a numeric sender of up to 15 digits. Longer or non-Latin sender names are refused with 400 INVALID_SENDER rather than shortened.
Registration. Most countries in the region require sender IDs to be registered before use, usually with a trade licence or commercial registration and a letter of authorisation, and some per operator. WAYVZ handles registration with you; plan for the lead time before go-live. Some operators do not accept spaces in sender names, so a single word is the safest choice.
Destination numbers. International format, 8 to 15 digits, with or without + or 00. Responses return the number as digits only. For Saudi Arabia, the UAE and Egypt, a national 0 left after the country code is removed (9660501234567 becomes 966501234567), and numbers that cannot be valid mobiles there, such as a digit missing or the country code entered twice, are refused at once with INVALID_DESTINATION, without being sent or charged.
Statuses
Every message has a status with a group for simple logic and a name for detail, each as a number (groupId, id) and as text (groupName, name). The numbers follow the catalogue most SMS APIs share, so existing report parsers work as they are. When a message fails, error gives the reason: code, description and permanent. permanent: true means sending the same message again will fail the same way. When the operator gives its own reason code in the delivery report, error.operatorCode carries it (for example "008"); the field is left out when the operator gave none.
PENDING_ACCEPTED
Stored and queued. Returned in the 202 response.
PENDING_ENROUTE
All parts handed to the operator route, waiting for the delivery report.
DELIVEREDUNDELIVERABLEREJECTEDEXPIRED
Final statuses never change. A webhook is sent when notifyUrl is set (not for messages you cancel).
| Group (id) | Name (id) | Meaning |
|---|---|---|
| PENDING 1 | PENDING_ACCEPTED (26) | Accepted and queued, or scheduled for later. |
| PENDING 1 | PENDING_ENROUTE (7) | Sent to the network; waiting for the delivery report. |
| DELIVERED 3 | DELIVERED_TO_HANDSET (5) | Every part reached the handset. |
| UNDELIVERABLE 2 | UNDELIVERABLE_REJECTED_OPERATOR (4) | The operator could not deliver it (for example handset off for too long, or number not in service). |
| UNDELIVERABLE 2 | UNDELIVERABLE_NOT_DELIVERED (9) | Only some parts of a long message were sent, so it arrived incomplete. |
| UNDELIVERABLE 2 | UNDELIVERABLE_NOT_SENT (31) | The message could not be sent. Not charged. |
| EXPIRED 4 | EXPIRED_EXPIRED (15) | The validity period ended before the message could be sent. Not charged. |
| EXPIRED 4 | EXPIRED_DLR_UNKNOWN (29) | No final delivery report arrived within 72 hours. |
| REJECTED 5 | REJECTED_PREFIX_MISSING (8) | The destination network is not served. |
| REJECTED 5 | REJECTED_NOT_ENOUGH_CREDITS (12) | Prepaid accounts: the balance was too low when the message was due to be sent. Not sent and not charged. Top up, then send it again. |
| REJECTED 5 | REJECTED_ROUTE_NOT_AVAILABLE (19) | No route or no price is set for this destination on your account. Contact your account manager. |
| REJECTED 5 | REJECTED_SYSTEM_ERROR (21) | Rejected for another reason; see error. |
| REJECTED 5 | REJECTED_DUPLICATE_MESSAGE_ID (23) | You already used this messageId. Not sent. |
| REJECTED 5 | REJECTED_DESTINATION (52) | The number is invalid or reported unreachable by the network. |
| REJECTED 5 | REJECTED_CANCELLED (200) | Cancelled before sending. |
Common error.code values
| Code | Meaning |
|---|---|
| INVALID_DESTINATION | The number is not a valid international number. For Saudi Arabia, the UAE and Egypt the mobile format is also checked (for example 966501234567, not 9660501234567). Not sent and not charged. |
| UNSUPPORTED_DESTINATION | No network match for the number. |
| SMSC_NO_ROUTE · SMSC_NO_COST · SMSC_NO_RATE | Routing or pricing is not configured for this destination. |
| SMSC_HLR_UNREACHABLE | The network reports the number as not reachable. |
| UNDELIVERABLE · EXPIRED · OPERATOR_REJECTED · DELETED | Final result reported by the operator. |
| PARTIAL_SUBMISSION | Some parts of a long message were never sent, so it arrived incomplete. |
| VALIDITY_EXPIRED | The validity period ended before the message could be sent. |
| DUPLICATE_MESSAGE_ID | This messageId was already used on your account. |
| INSUFFICIENT_BALANCE | Prepaid accounts: the balance was too low to send this message. It was not sent and not charged. |
| PREPAID_CURRENCY_MISMATCH | Prepaid accounts: the balance is held in a different currency from your price plan. Contact WAYVZ support. |
| NO_FINAL_REPORT | No delivery report within the tracking window. |
| SMSC_UNAVAILABLE · SMSC_INSERT_UNCERTAIN | The message could not be handed to the network after several attempts. Not charged. |
| PREPARATION_FAILED · PART_COUNT_MISMATCH | The message could not be prepared for sending. Contact support with the messageId. |
| BODY_PURGED | The message was still waiting when its text was deleted under the 30-day retention rule (for example a schedule further ahead than that). Not sent. |
| CANCELLED | Cancelled by a bulk cancel request. |
Delivery webhooks
When a message reaches a final status, WAYVZ sends a POST to the message's webhooks.delivery.url. Answer with any 2xx status within 10 seconds. Other answers and timeouts are retried with increasing delays, from 30 seconds up to one hour apart, for up to 10 attempts. Redirects are not followed.
{
"results": [
{
"bulkId": "4c334d91-8821-443a-ba76-37d4457d7351",
"messageId": "login-88123",
"wayvzMessageId": "ffcc1982-5b00-4e18-9588-370656b563e8",
"to": "971501234567",
"sender": "WAYVZ",
"clientReference": null,
"callbackData": "user=88123",
"smsCount": 1,
"partsDelivered": 1,
"sentAt": "2026-11-09T15:12:04.902Z",
"doneAt": "2026-11-09T15:12:43.350Z",
"status": { "groupId": 3, "groupName": "DELIVERED", "id": 5, "name": "DELIVERED_TO_HANDSET",
"description": "Message delivered to the handset." },
"error": null,
"price": { "pricePerMessage": 0.045, "currency": "EUR" }
}
]
}Verify the signature
Every webhook carries X-Wayvz-Signature: t=<unix seconds>,v1=<hex> and X-Wayvz-Message-Id. Compute an HMAC-SHA256 of "<t>.<raw request body>" with your webhook secret (issued by WAYVZ with your API key), compare it with v1 in constant time, and reject signatures older than 5 minutes. Always use the raw body bytes, before any JSON parsing.
The same message can, rarely, be delivered twice. Use messageId to ignore repeats.
Webhook requests carry User-Agent: WAYVZ-Webhooks/1.0 and Content-Type: application/json. Each POST currently carries one result; process results as an array all the same.
import crypto from "node:crypto"; export function verifyWayvz(rawBody, header, secret) { const parts = Object.fromEntries(header.split(",").map(p => p.split("="))); const t = Number(parts.t); if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false; const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex"); const a = Buffer.from(expected), b = Buffer.from(parts.v1 ?? ""); return a.length === b.length && crypto.timingSafeEqual(a, b); }
import hmac, hashlib, time def verify_wayvz(raw_body: bytes, header: str, secret: str) -> bool: parts = dict(p.split("=", 1) for p in header.split(",")) t = int(parts.get("t", "0")) if abs(time.time() - t) > 300: return False expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest() return hmac.compare_digest(expected, parts.get("v1", ""))
static bool VerifyWayvz(string rawBody, string header, string secret) { var parts = header.Split(',').Select(p => p.Split('=', 2)).ToDictionary(p => p[0], p => p[1]); if (!long.TryParse(parts.GetValueOrDefault("t"), out var t) || Math.Abs(DateTimeOffset.UtcNow.ToUnixTimeSeconds() - t) > 300) return false; using var h = new HMACSHA256(Encoding.UTF8.GetBytes(secret)); var expected = Convert.ToHexString(h.ComputeHash(Encoding.UTF8.GetBytes($"{t}.{rawBody}"))).ToLowerInvariant(); return CryptographicOperations.FixedTimeEquals( Encoding.ASCII.GetBytes(expected), Encoding.ASCII.GetBytes(parts.GetValueOrDefault("v1", ""))); }
# Webhooks are sent by WAYVZ to your server, so there is no curl call here. # To test your endpoint locally, compute a signature for a sample body: t=$(date +%s) body='{"results":[]}' sig=$(printf '%s.%s' "$t" "$body" | openssl dgst -sha256 -hmac "$WAYVZ_WEBHOOK_SECRET" -hex | sed 's/^.* //') curl https://your-server.example.com/sms/status \ -H "Content-Type: application/json" \ -H "X-Wayvz-Signature: t=$t,v1=$sig" -d "$body"
Errors
Errors use standard HTTP status codes and one JSON shape. Quote requestId when you contact support.
{ "error": { "code": "INVALID_SENDER", "message": "messages[0].sender must be up to 11 letters or digits, or a number of up to 15 digits.", "requestId": "8000302a-0006-f900-b63f-84710c7967bb" } }| HTTP | Code | What to do |
|---|---|---|
| 400 | INVALID_JSON · INVALID_REQUEST | Fix the body. Nothing was stored. |
| 400 | INVALID_SENDER · INVALID_TEXT · INVALID_REFERENCE | Fix the field named in the message. |
| 400 | UNSUPPORTED_TEXT · TEXT_TOO_LONG | Remove emoji, or shorten the text to 10 parts or fewer. |
| 400 | INVALID_NOTIFY_URL | Use a public https:// URL of up to 500 characters. |
| 400 | INVALID_TYPE · INVALID_SCHEDULE · INVALID_SPEED_LIMIT · INVALID_VALIDITY_PERIOD · INVALID_DELIVERY_TIME_WINDOW | Check the options values. |
| 400 | INVALID_MESSAGE_ID · INVALID_BULK_ID · INVALID_CALLBACK_DATA | Use letters, digits and . _ : - (up to 200 for a message, 100 for a bulk); keep callbackData to 4,000 characters. |
| 400 | MISSING_PARAMETER | A destination's parameters has no value for a placeholder in the text. |
| 400 | INVALID_LIMIT · INVALID_DATE · INVALID_STATUS · INVALID_CURSOR | Check the query values of GET /v1/messages or /v1/reports: limit 1 to 1,000, ISO 8601 dates, status group names, and cursor exactly as returned. |
| 400 | TOO_MANY_MESSAGES · TOO_MANY_DESTINATIONS | Split the request: up to 100 messages and 1,000 destinations each. |
| 400 | INVALID_IDEMPOTENCY_KEY | Use 8 to 128 printable ASCII characters. |
| 400 | HTTPS_REQUIRED | Call the API over HTTPS. |
| 401 | UNAUTHORIZED | Check the API key. |
| 402 | INSUFFICIENT_BALANCE | Prepaid accounts: the request costs more than your balance. Nothing was accepted or charged. Top up, then send again. |
| 403 | SUBMISSION_NOT_ENABLED_FOR_CLIENT | Contact your account manager to enable sending. |
| 403 | IP_NOT_ALLOWED | Call from an address on your allowlist, or ask WAYVZ to add this one. |
| 404 | NOT_FOUND | Check the ID. |
| 409 | IDEMPOTENCY_CONFLICT | This key was used with a different body. Use a new key for a new send. |
| 409 | BULK_ID_CONFLICT | This bulkId already exists on your account. Nothing was sent. |
| 409 | PREPAID_CURRENCY_MISMATCH | Prepaid accounts: your balance currency does not match your price plan. Contact WAYVZ support. |
| 415 | UNSUPPORTED_MEDIA_TYPE | Send Content-Type: application/json. |
| 429 | RATE_LIMITED | Wait the number of seconds in Retry-After, then retry. |
| 500 | INTERNAL_ERROR | Unexpected error. Retry with the same messageId values; contact support with the requestId if it repeats. |
| 503 | SUBMISSION_NOT_CONFIGURED | Sending is temporarily switched off on our side. Retry later. |
| 503 | SERVICE_UNAVAILABLE · SERVICE_STARTING | Retry with the same messageId values, so a message that was in fact accepted is not sent twice. |
Limits
| Limit | Value |
|---|---|
| Requests per account | 50 per second (higher limits on request) |
| Messages per request | 100 |
| Destinations per request | 1,000 |
| Request body | 1 MB |
| Text length | 1,600 characters, 10 parts |
| Scheduling | Up to 180 days ahead |
| Delivery tracking | 72 hours after sending |
| Bulk status listing | 1,000 messages per call |
| Search and delivery reports | 1,000 per call |
| Delivery reports to pull | 48 hours after the final result |
| Message text kept | 30 days, then deleted; status and metadata are kept |
Support
Technical questions, new sender IDs, higher limits or key rotation: support@wayvzgroup.com. Include the requestId from the response, or the messageId, so we can trace your request.