WAYVZ SMS API
SMS API reference
api.wayvzgroup.com v1
WAYVZ Group

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.

Base URLhttps://api.wayvzgroup.com
Version/v1
FormatJSON, UTF-8
AuthBearer API key
OpenAPI/openapi.json

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.

Send an SMS
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." }
    }]
  }'

Authentication

Every request carries your API key in the Authorization header. Requests over plain HTTP are refused.

Header
Authorization: Bearer <your API key>
  • Live keys start with sk_live_. Sandbox keys start with sk_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.
ResponseMeaning
401 UNAUTHORIZEDThe key is missing, unknown, revoked or expired.
403 SUBMISSION_NOT_ENABLED_FOR_CLIENTThe key is valid, but sending is not enabled for the account yet.
403 IP_NOT_ALLOWEDThe account has an IP allowlist and this request did not come from one of its addresses.
503 AUTH_SERVICE_UNAVAILABLEAuthentication could not be checked. Retry shortly.
Messages

Send messages

POST/v1/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

HeaderDescription
Authorization requiredBearer <API key>
Content-Type requiredapplication/json
Idempotency-Key optionalNot 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

FieldDescription
messages required array, 1 to 100The messages to send.
messages[].sender required stringSender 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 arrayRecipients of this message. Up to 1,000 destinations per request in total.
destinations[].to required stringInternational number: +971501234567, 00971501234567 or 971501234567.
destinations[].messageId string, max 200Your 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 128Your own reference, returned in status responses and webhooks.
destinations[].parameters objectValues for {{name}} placeholders in the text, for this destination only. See Personalisation.
messages[].content.text required stringMessage text, 1 to 1,600 characters and at most 10 parts. Encoding is chosen automatically. See Encoding.
messages[].webhooks.delivery.url stringPublic 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 booleanfalse sends no webhook for this message; collect the result from Delivery reports instead.
messages[].callbackData string, max 4,000Any 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 stringtransactional (default) for OTP and service messages, or marketing. Transactional traffic is always sent first.
options.schedule.bulkId string, max 100Your 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 8601Send 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 objectOnly 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.
Request: OTP to two countries, one call
{
  "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

Response
{
  "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.

Invalid numbers do not fail the request.A destination that is not a valid number, or belongs to a network WAYVZ does not serve, comes back inside the 202 with status group 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

POST/v1/messages/estimate

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.

Response 200
{
  "totalSmsCount": 4,
  "messages": [
    { "index": 0, "encoding": "GSM7", "smsCountPerDestination": 1, "destinations": 1 },
    { "index": 1, "encoding": "UCS2", "smsCountPerDestination": 3, "destinations": 1 }
  ],
  "rejectedDestinations": []
}

Message status

GET/v1/messages/{messageId}

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.

Response 200
{
  "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

GET/v1/bulks/{bulkId}

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.

Response 200 (shortened)
{
  "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

GET/v1/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.

QueryDescription
since ISO 8601Created at or after this time (UTC).
until ISO 8601Created before this time (UTC).
status stringStatus groups, comma separated: PENDING, DELIVERED, UNDELIVERABLE, EXPIRED, REJECTED.
bulkId stringYour bulkId or WAYVZ's.
to stringRecipient number, in any of the accepted formats.
limit 1 to 1,000Messages per page. Default 50.
cursor stringnextCursor from the previous page.
Failed messages since this morning
GET /v1/messages?since=2026-11-10T00:00:00Z&status=UNDELIVERABLE,REJECTED&limit=100

{
  "results": [ /* message objects, newest first */ ],
  "nextCursor": "AQAAAAAAAAA"
}

Cancel a bulk

POST/v1/bulks/{bulkId}/cancel

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.

Response 200
{ "bulkId": "9a1c5e07-3f6b-4d2a-9c11-6b8e2f4d7a90", "cancelled": 1735 }

Delivery reports

GET/v1/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).

QueryDescription
bulkId stringOnly results of this bulk (your ID or WAYVZ's).
messageId stringOnly this message.
limit 1 to 1,000Maximum results per call. Default 50.
Response 200
{ "results": [ /* one object per message, as in the webhook body */ ] }

Send a code

POST/v1/verify

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.

FieldDescription
to required stringMobile number in international format, e.g. 966501234567.
sender required stringYour registered sender ID.
language stringen (default) or ar for the standard text.
appName stringYour brand, shown in the standard text, e.g. "482913 is your verification code for noon".
template stringYour own text instead, up to 480 characters. Must contain {code}; may use {minutes} and {app}.
codeLength 4 to 10Digits in the code. Default 6.
expiresIn 60 to 1800Seconds the code stays valid. Default 300.
androidAppHash stringYour app's 11-character hash: Android reads the code automatically (SMS Retriever).
webOtpDomain stringYour site's domain: mobile browsers fill in the code automatically (Web OTP). Use this or androidAppHash, not both.
clientReference stringYour own reference, up to 128 characters.
Response 201
{ "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

POST/v1/verify/{verificationId}/check

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.

Response 200
{ "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

GET/v1/verify/{verificationId}

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 inResult
9901REJECTED_ROUTE_NOT_AVAILABLE when sending.
9902Sent, then UNDELIVERABLE_REJECTED_OPERATOR.
9903Sent, then EXPIRED_DLR_UNKNOWN (no final report).
anything elseSent, 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.

  1. 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.
  2. 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.
  3. 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.

ToolWhat it doesChanges anything
list_messagesYour recent messages, newest first, filtered by status, recipient number or campaign, up to the last 30 days.No
get_messageThe status and delivery history of one message.No
get_bulkA campaign summary: pending, delivered and failed messages, SMS parts and total price.No
explain_failuresWhy 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_smsShows encoding, parts and any invalid numbers for a text before sending. Nothing is sent or stored.No
send_smsSends 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.

Guides

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.

One request, two texts
{
  "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.

Guides

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 202 response, with the same bulkId and messageId values and the header Idempotent-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.

EncodingSingle SMSPer part when longerTypical text
GSM-7160 characters153 charactersEnglish and most Latin text
UCS-270 characters67 charactersArabic, 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 smsCount and encoding fields 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.

Scheduled campaign, 600 messages per minute
{
  "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.

Accepted
PENDING_ACCEPTED

Stored and queued. Returned in the 202 response.

Sent to network
PENDING_ENROUTE

All parts handed to the operator route, waiting for the delivery report.

Final
DELIVEREDUNDELIVERABLEREJECTEDEXPIRED

Final statuses never change. A webhook is sent when notifyUrl is set (not for messages you cancel).

Group (id)Name (id)Meaning
PENDING 1PENDING_ACCEPTED (26)Accepted and queued, or scheduled for later.
PENDING 1PENDING_ENROUTE (7)Sent to the network; waiting for the delivery report.
DELIVERED 3DELIVERED_TO_HANDSET (5)Every part reached the handset.
UNDELIVERABLE 2UNDELIVERABLE_REJECTED_OPERATOR (4)The operator could not deliver it (for example handset off for too long, or number not in service).
UNDELIVERABLE 2UNDELIVERABLE_NOT_DELIVERED (9)Only some parts of a long message were sent, so it arrived incomplete.
UNDELIVERABLE 2UNDELIVERABLE_NOT_SENT (31)The message could not be sent. Not charged.
EXPIRED 4EXPIRED_EXPIRED (15)The validity period ended before the message could be sent. Not charged.
EXPIRED 4EXPIRED_DLR_UNKNOWN (29)No final delivery report arrived within 72 hours.
REJECTED 5REJECTED_PREFIX_MISSING (8)The destination network is not served.
REJECTED 5REJECTED_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 5REJECTED_ROUTE_NOT_AVAILABLE (19)No route or no price is set for this destination on your account. Contact your account manager.
REJECTED 5REJECTED_SYSTEM_ERROR (21)Rejected for another reason; see error.
REJECTED 5REJECTED_DUPLICATE_MESSAGE_ID (23)You already used this messageId. Not sent.
REJECTED 5REJECTED_DESTINATION (52)The number is invalid or reported unreachable by the network.
REJECTED 5REJECTED_CANCELLED (200)Cancelled before sending.

Common error.code values

CodeMeaning
INVALID_DESTINATIONThe 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_DESTINATIONNo network match for the number.
SMSC_NO_ROUTE · SMSC_NO_COST · SMSC_NO_RATERouting or pricing is not configured for this destination.
SMSC_HLR_UNREACHABLEThe network reports the number as not reachable.
UNDELIVERABLE · EXPIRED · OPERATOR_REJECTED · DELETEDFinal result reported by the operator.
PARTIAL_SUBMISSIONSome parts of a long message were never sent, so it arrived incomplete.
VALIDITY_EXPIREDThe validity period ended before the message could be sent.
DUPLICATE_MESSAGE_IDThis messageId was already used on your account.
INSUFFICIENT_BALANCEPrepaid accounts: the balance was too low to send this message. It was not sent and not charged.
PREPAID_CURRENCY_MISMATCHPrepaid accounts: the balance is held in a different currency from your price plan. Contact WAYVZ support.
NO_FINAL_REPORTNo delivery report within the tracking window.
SMSC_UNAVAILABLE · SMSC_INSERT_UNCERTAINThe message could not be handed to the network after several attempts. Not charged.
PREPARATION_FAILED · PART_COUNT_MISMATCHThe message could not be prepared for sending. Contact support with the messageId.
BODY_PURGEDThe 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.
CANCELLEDCancelled 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.

Webhook body
{
  "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.

Signature check
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);
}
Reference

Errors

Errors use standard HTTP status codes and one JSON shape. Quote requestId when you contact support.

Error body
{ "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" } }
HTTPCodeWhat to do
400INVALID_JSON · INVALID_REQUESTFix the body. Nothing was stored.
400INVALID_SENDER · INVALID_TEXT · INVALID_REFERENCEFix the field named in the message.
400UNSUPPORTED_TEXT · TEXT_TOO_LONGRemove emoji, or shorten the text to 10 parts or fewer.
400INVALID_NOTIFY_URLUse a public https:// URL of up to 500 characters.
400INVALID_TYPE · INVALID_SCHEDULE · INVALID_SPEED_LIMIT · INVALID_VALIDITY_PERIOD · INVALID_DELIVERY_TIME_WINDOWCheck the options values.
400INVALID_MESSAGE_ID · INVALID_BULK_ID · INVALID_CALLBACK_DATAUse letters, digits and . _ : - (up to 200 for a message, 100 for a bulk); keep callbackData to 4,000 characters.
400MISSING_PARAMETERA destination's parameters has no value for a placeholder in the text.
400INVALID_LIMIT · INVALID_DATE · INVALID_STATUS · INVALID_CURSORCheck 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.
400TOO_MANY_MESSAGES · TOO_MANY_DESTINATIONSSplit the request: up to 100 messages and 1,000 destinations each.
400INVALID_IDEMPOTENCY_KEYUse 8 to 128 printable ASCII characters.
400HTTPS_REQUIREDCall the API over HTTPS.
401UNAUTHORIZEDCheck the API key.
402INSUFFICIENT_BALANCEPrepaid accounts: the request costs more than your balance. Nothing was accepted or charged. Top up, then send again.
403SUBMISSION_NOT_ENABLED_FOR_CLIENTContact your account manager to enable sending.
403IP_NOT_ALLOWEDCall from an address on your allowlist, or ask WAYVZ to add this one.
404NOT_FOUNDCheck the ID.
409IDEMPOTENCY_CONFLICTThis key was used with a different body. Use a new key for a new send.
409BULK_ID_CONFLICTThis bulkId already exists on your account. Nothing was sent.
409PREPAID_CURRENCY_MISMATCHPrepaid accounts: your balance currency does not match your price plan. Contact WAYVZ support.
415UNSUPPORTED_MEDIA_TYPESend Content-Type: application/json.
429RATE_LIMITEDWait the number of seconds in Retry-After, then retry.
500INTERNAL_ERRORUnexpected error. Retry with the same messageId values; contact support with the requestId if it repeats.
503SUBMISSION_NOT_CONFIGUREDSending is temporarily switched off on our side. Retry later.
503SERVICE_UNAVAILABLE · SERVICE_STARTINGRetry with the same messageId values, so a message that was in fact accepted is not sent twice.

Limits

LimitValue
Requests per account50 per second (higher limits on request)
Messages per request100
Destinations per request1,000
Request body1 MB
Text length1,600 characters, 10 parts
SchedulingUp to 180 days ahead
Delivery tracking72 hours after sending
Bulk status listing1,000 messages per call
Search and delivery reports1,000 per call
Delivery reports to pull48 hours after the final result
Message text kept30 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.