NewTelegram fallback: if WhatsApp fails, the code goes to Telegram automatically.Read more
WhatsApp & Telegram OTP API

Verify users on the app they already open every day.

Send one-time passwords through WhatsApp or Telegram with one API call. Pay Meta's rate plus a fixed $0.01 per message, with automatic fallback when a channel fails.

251 countries Telegram OTP $0.02 everywhere 8 message languages

The message your users receive: Meta's standard authentication template.

How it works

Live in an afternoon

Three steps, no telecom contracts, no sender ID paperwork.

  1. Create an API key

    Sign up, add credit to your wallet and copy your key from the dashboard.

  2. Send the code

    Your server generates the code and sends it to VerifyWay with the user's phone number.

  3. Check what the user types

    The user receives it on WhatsApp or Telegram. Failed messages are refunded to your wallet.

Two channels, one API

Choose the channel per request

WhatsApp

Official WhatsApp Cloud API

Codes arrive from a verified business profile with a one-tap copy button.

  • Price depends on the country
  • 8 template languages
  • Delivered and read status
WhatsApp prices by country
Telegram

Telegram Gateway

Codes arrive in the official Telegram verification chat. One flat price worldwide.

  • Every country: $0.02
  • Fallback from WhatsApp in the same request
How fallback works
WhatsApp OTP vs SMS OTP

Why teams move verification off SMS

SMS was built for carriers, not for security. WhatsApp and Telegram were built for apps.

WhatsApp / TelegramSMS
SenderA verified business nameA number or sender ID that can be spoofed
Delivery statusDelivered and read, sent to your webhookDepends on the carrier route
Setup per countryNone. One template, 251 countriesSender ID registration rules in many countries
EncryptionEncrypted in transit inside the appPlain text across carrier networks
OTP fraudKeys pause automatically on unusual trafficA common target for SMS pumping
User experienceOne-tap copy buttonRead and type the code
For developers

One request. Any language.

  • JSON over HTTPS with a Bearer key
  • Fallback to the other channel with one flag
  • Delivery status sent to your webhook
  • Check your balance with the same key
Read the API docs
Pricing

Popular countries

Final prices per message in USD. They include Meta's fee and our fixed $0.01 margin.

See all 251 countries
FAQ

Questions teams ask before switching

Why WhatsApp instead of SMS?

Most of your users already have WhatsApp open. Messages arrive from a verified business name, cannot be spoofed by a random sender ID, and in many countries cost less than SMS.

What does "fixed $0.01 margin" mean?

Meta charges a fee per delivered message that depends on the country. We add exactly $0.01 to that fee. The prices on our site already include it, so you pay what you see.

What happens if a message fails?

A message that fails is refunded to your wallet automatically. With fallback enabled, we try the other channel within the same request.

Do you generate the OTP code?

No. Your server creates the code and checks what the user types. VerifyWay only delivers it, which keeps verification under your control.

How do I pay?

Top up your wallet by card from $10. Each delivered message is deducted from your balance, and you can check it any time in the dashboard or through the API.

Send your first OTP today

Create an account, top up from $10 and get your API key in minutes.

Pricing

WhatsApp and Telegram OTP pricing

All prices are final, in USD, per delivered message. WhatsApp: Meta's fee for the country plus our fixed $0.01. Telegram: $0.02 in every country. Failed messages are free, and there are no hidden fees.

Telegram OTP
One price in every country
$0.0200per delivered message
  • Same price in all 251 countries
  • Delivered in Telegram's official verification chat
  • Works as automatic fallback for WhatsApp

Dial code

Dial code ISO code Meta pricing region
OTP · Authenticationper delivered message
Telegram OTP$0.0200per delivered messageSame price in every country
per month
WhatsApp
Telegram
Compare all options in the cost calculator

Create an account, top up from $10 and get your API key in minutes.

WhatsApp and Telegram OTP API

Phone verification without SMS problems

No sender ID registration, no carrier filtering, no SIM-swap codes sitting in an SMS inbox. Your users get the code in WhatsApp or Telegram, and you get delivery status by webhook.

What you get

Built for verification, not marketing blasts

Automatic fallback

Set fallback to "yes" and a failed WhatsApp code is retried on Telegram in the same request. Failed attempts are refunded.

Delivery webhooks

Get delivered, read, failed and expired statuses sent to your server, matched by message_id.

Fraud protection

Unusual traffic to many countries pauses an API key automatically, which stops OTP pumping before it drains your wallet.

Pay per delivered message

Prepaid wallet, Meta's rate plus $0.01. No monthly fee and no minimum volume.

Send your first OTP today

Create an account, top up from $10 and get your API key in minutes.

Home/Developers
API v1 · Updated 26 November 2026.

VerifyWay API reference

Send verification codes through WhatsApp or Telegram, read your wallet balance, and receive delivery updates at your own HTTPS endpoint.

Send an OTPPOST /api/v1
Read balanceGET /api/v1/balance
Hostapi.verifyway.com
AuthenticationBearer YOUR_API_KEY
Try it

API playground

Build a request and copy ready-to-run code. Nothing is sent from this page.

POSThttps://api.verifyway.com/api/v1

              

              

Section 1

URLs and capabilities

PurposeMethodURL
Send an OTPPOSThttps://api.verifyway.com/api/v1
Read your walletGEThttps://api.verifyway.com/api/v1/balance
Customer dashboardBrowserverifyway.com/app/

Use the api.verifyway.com host for API requests. The dashboard address is separate. The reviewed API supports both forms with and without a trailing slash; examples use the form without one.

For an existing integration, POST https://api.verifyway.com/ remains a compatibility entrypoint after its account is switched. Existing accepted keys, field names, JSON and form submissions remain supported. The root URL is an internal alias, rather than a redirect that requires a client to resend its POST. Root and versioned URLs share the same account limits and idempotency scope.

The customer REST API currently has two operations. Status updates come from webhooks and the dashboard's Message logs. There is no customer REST operation to verify an OTP, poll a message by ID, quote prices, create keys, update a webhook, add wallet credit or configure automatic top-ups. Key management, webhook settings, wallet funding and automatic top-ups use the dashboard. Your own application verifies OTPs. Provider callback URLs are not customer API endpoints.

Section 2

Authentication and account access

Send your API key in an HTTP header for both operations:

HTTP
Authorization: Bearer YOUR_API_KEY
Accept: application/json

Create and revoke keys in Dashboard → API → API keys. Keep the key on your backend. Node.js examples are server-side JavaScript; never expose the key in browser JavaScript, a public repository, a mobile app or frontend environment variables.

  • The key selects your account. No user_id request parameter is needed or supported for selecting a different customer.
  • Your account's API IP allowlist applies to sending and balance reads. Use the public outbound IP of your server or integration runner. Dashboard sign-in has separate controls.
  • Missing or malformed Bearer authentication returns HTTP 401. Invalid/revoked keys and account/IP restrictions normally return HTTP 403.
  • Temporary API protection can return HTTP 429. Availability or migration controls can return HTTP 503.
  • Creating a new key does not remove an account-wide restriction or multiply its request allowance.
Section 3

Quick start: send an OTP

Your application generates the code, sends it using VerifyWay, then verifies the user's submitted code in your own application. VerifyWay delivers the code; it does not provide an OTP verification endpoint or decide your application's verification expiry.

Full example · POST https://api.verifyway.com/api/v1
curl -X POST 'https://api.verifyway.com/api/v1' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Idempotency-Key: otp-request-001' \
  -d '{
    "recipient": "+31612345678",
    "type": "otp",
    "channel": "whatsapp",
    "fallback": "no",
    "code": "001234",
    "lang": "en"
}'

Use Content-Type: application/json for a new integration. The JSON body must be an object, not an array, and no larger than 65,536 bytes (64 KiB). Existing integrations can continue to use URL-encoded or multipart form fields. The compatibility parser also accepts a valid JSON object when an older integration omitted the content type; new clients should always set it explicitly.

Request fields

FieldRequiredTypeMeaning
recipientYesString recommendedInternational number including its country calling code, for example +31612345678. Country is detected from the number.
typeYesStringMust be exactly otp.
codeYesStringNonempty ASCII digits. Keep it a string to preserve leading zeros. The single value "0" is rejected.
channelNoStringwhatsapp or telegram. Omitted or empty selects whatsapp.
fallbackNoString recommendedyes enables an alternate-channel attempt after an eligible failure. Omitted, no or other values leave it off. JSON boolean true is also accepted for compatibility.
langNoStringTemplate language. Omitted or unsupported values use the configured default. A gateway can apply its own supported-template fallback.

Code length: use 4–8 digits if Telegram or cross-channel fallback is involved; a six-digit string is a suitable integration example. The compatibility admission parser deliberately does not enforce a short maximum length. A provider or template can still reject an unsuitable code after HTTP 200; acceptance does not establish that provider's supported length. Use a string such as "001234", not the JSON number 1234.

Use a clean E.164 number with + and country calling code. For compatibility the parser also handles a missing +, spaces, parentheses, hyphens, Arabic/Persian phone-number digits and the Iraqi +96407… form. It normalizes the destination internally. Do not rely on acceptance as proof that the number has a WhatsApp or Telegram account.

Reference language defaults are en, ar, pt_BR, de, ru, az, kk, fr, with en as the initial default. These are administrator-configurable template settings, not a guarantee that every gateway has every template.

Country, price and gateway are selected by the platform. Do not send a gateway ID, country override, price, callback URL or user ID as extra OTP parameters; those do not configure routing, pricing, account selection or notifications.

Accepted response

HTTP 200 means accepted for processing, not delivered.

JSON
{
  "status": "success",
  "message_id": "0123456789abcdef0123456789abcdef0123",
  "recipient": "+31612345678",
  "code": "001234"
}
FieldTypeMeaning
statusStringsuccess means admission succeeded.
message_idStringOpaque request identifier. Store it to correlate logs and webhook events.
recipientStringCompatibility response representation of the recipient; it may retain phone formatting.
codeStringThe code supplied in the request. Do not log the full response.

Keep the returned ID as an opaque string. Do not substitute a provider's WhatsApp message ID or Telegram ID for this request identifier.

Telegram

Use the same endpoint and fields with "channel": "telegram". A recipient must be eligible for Telegram's delivery service. HTTP 200 still means queued, rather than delivery confirmation.

Optional cross-channel fallback

Set "fallback": "yes" with either primary channel. The alternate channel is considered only after an eligible result, within the remaining processing window and with sufficient available credit. Fallback is not an unconditional second send.

  • Both attempts share one message_id.
  • Each channel attempt has its own attempt_id and rate.
  • A confirmed failed charged attempt is refunded; an alternate attempt uses its own channel price.
  • An uncertain provider result can enter reconcile; do not assume a refund or resend has occurred.

Reference policy defaults are a 120-second normal processing window, a 240-second processing window with fallback, and a 120-second Telegram delivery wait. Saved administrator settings can change these. Your application's OTP validity period remains your responsibility.

Section 4

Read your wallet balance

Full example · GET https://api.verifyway.com/api/v1/balance
curl --request GET 'https://api.verifyway.com/api/v1/balance' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Accept: application/json'

No request body, user ID, currency parameter or idempotency key is required. The authenticated key selects your wallet.

Success: HTTP 200

JSON
{
  "status": "success",
  "user_id": "42",
  "currency": "USD",
  "balance": "10.125",
  "reserved": "0.025",
  "available": "10.1",
  "frozen": false
}
FieldTypeMeaning
statusStringsuccess when the wallet was found.
user_idStringOriginal customer ID for an imported account, otherwise native account ID.
currencyStringConfigured wallet currency, currently USD.
balanceDecimal stringRecorded total balance, including reserved funds.
reservedDecimal stringFunds held for pending OTP attempts.
availableDecimal stringBalance minus reserved funds while credit is unexpired. Expired credit returns "0" even if the recorded balance is positive.
frozenBooleanA wallet hold blocks spending, even when the numeric balance is positive.

Amounts have up to six decimal places with unnecessary trailing zeros removed: "10", "10.125", "0.000001", "0". Use decimal arithmetic or integer micro-units; avoid binary floating-point calculations for money.

A frozen or expired wallet can still be read. The expiry timestamp is not included in this response. A balance read does not create a wallet, reserve/debit funds, fund an account or send a message. Normal API-key last-used metadata is still recorded.

Responses carry Cache-Control: no-store, private. A missing configured-currency wallet returns HTTP 404 with {"error":"Wallet not found"}. OTP request quotas are not consumed by balance reads, but account, key, IP and abuse restrictions still apply.

Section 5

Idempotency and safe retries

The optional Idempotency-Key header is strongly recommended for sending. A key contains 1–128 characters from letters, digits, _, ., : and -.

  1. Create a unique key for each new logical OTP request and store it with that request.
  2. If the connection times out or the outcome is uncertain, repeat the same payload with the same key.
  3. A matching accepted request returns its existing message_id without reserving and queueing the same request again.
  4. Reusing a key with a different normalized request returns HTTP 409.
  5. Keep keys unique for your account across all of its API keys and URL aliases. There is no published short retention period after which reusing an old key is safe.

Matching retries still count towards the HTTP request allowance. Authentication and protection checks still apply. For a new code or a genuinely new request, choose a new idempotency key.

After HTTP 429 or HTTP 503, respect Retry-After when present and use exponential backoff with jitter. It is a minimum wait hint, not a promise that service will reopen then. For a timeout or HTTP 5xx, do not assume the send failed and immediately create a new request. Retry with the original idempotency key and payload.

The recipient cooldown is separate from idempotency: the initial reference policy allows one new accepted request per normalized number every 30 seconds across accounts. Its rejection is HTTP 400, not HTTP 429. The saved cooldown is administrator-configurable.

During migration maintenance, a new request can receive HTTP 503 before a send or wallet debit. Such a rejection is not queued for later; retry after reopening. Early availability responses can be plain text, so error handling must not assume every response body is JSON.

Section 6

Errors and troubleshooting

Application errors normally have this shape:

JSON
{"error": "No Balance, Please topup"}
HTTPExample error / conditionWhat to do
400Invalid JSON data; JSON object requiredSend a valid JSON object, or a supported existing form submission.
400Invalid phone numberUse an international destination with its country calling code.
400Missing or invalid code; Missing or invalid type; Invalid type or OTP codeSupply type: "otp" and a nonempty digit-string code.
400Invalid channel: use whatsapp or telegramUse exactly one of those lowercase values.
400Invalid Idempotency-KeyUse 1–128 permitted header characters.
400No Balance, Please topupAdd credit, then make or retry the appropriate request.
400Only 1 OTP allowed in 30 secondsWait for the configured recipient cooldown; do not rapidly retry. The number in the error reflects saved policy.
400No matching/available priceContact support or use a supported destination; price availability is separate from phone validity.
401Unauthorized accessSupply Authorization: Bearer YOUR_API_KEY.
403Invalid API key; account restriction; disallowed IPCheck the active key, account access and outbound IP allowlist.
404Wallet not found on balanceContact support to review the account's configured wallet.
405Unsupported request methodUse POST for OTP and GET for balance.
409Idempotency-Key already used for a different requestRestore the original data or use a new key for a genuinely new request.
409Wallet requires review; Wallet credit has expiredContact support; repeatedly resending will not resolve a wallet restriction.
413Request too largeKeep the OTP request body within 64 KiB.
429API access temporarily restricted.Respect Retry-After, back off and review request patterns.
503 / other 5xxMaintenance, unavailable service or uncertain outcomeHandle JSON or plain text; retry with backoff and the same idempotency key and data.

Read the HTTP status and error body together. Availability responses may instead use {"status":"maintenance","message":"OTP sending is temporarily unavailable."}, a JSON message field, or plain text. A successful HTTP response alone does not confirm message delivery. Do not expose API keys or OTP values in logs, support tickets, browser consoles or screenshots.

Section 7

Request limits and protection

The following are reference defaults from the new platform, not a live account configuration snapshot. Administrators can change thresholds and enforcement modes. All account rules are shared across that account's API keys and endpoint aliases.

RuleReference thresholdScopeDefault consequence when enforced
OTP requests100 in a rolling 60 secondsAccountHTTP 429 until allowance recovers
OTP requests1,000 in a rolling 3,600 secondsAccountHTTP 429 until allowance recovers
Different accepted destination countriesMore than 15 in 10 minutesAccount30-minute restriction
Failed attemptsAt least 150 and at least 40% of sends in 10 minutesAccount30-minute restriction; expired attempts count by default
Invalid phone numbersAt least 100 in 10 minutesAccount30-minute restriction
HTTP 429 responsesAt least 300 in 5 minutesSource IP30-minute IP restriction

Minute/hour request limits use rolling windows. A restriction does not imply every request was sent, charged or failed at the provider. Switching to another API key or URL alias does not create a new allowance. A normal minute/hour-only send hold does not consume or block the balance-read allowance, although abuse, key and IP holds can block balance access too.

Honor the returned Retry-After value. Do not rely on a restriction email: notification delivery is a separate administrator setting.

Section 8

Delivery webhooks

Use Dashboard → API → Webhooks to configure one public HTTPS URL for WhatsApp and Telegram status updates. This is dashboard configuration, not a Bearer-key REST endpoint. Adding a callback_url field to an OTP send does not set a webhook.

The platform sends a JSON POST to your endpoint when it records a supported status transition. It does not forward every raw provider payload. Your handler should persist or enqueue the event quickly, then acknowledge it.

Status event body

JSON
{
  "event_id": "0123456789abcdef0123456789abcdef",
  "event_type": "otp.status",
  "message_id": "0123456789abcdef0123456789abcdef0123",
  "attempt_id": "abcdef0123456789abcdef0123456789",
  "channel": "telegram",
  "status": "read",
  "occurred_at": "2026-11-26T10:00:00Z",
  "message_status": "read"
}
FieldTypeMeaning
event_idStringStable event identifier; use it to deduplicate retries.
event_typeStringotp.status for normal status notifications.
message_idStringIdentifier returned by your OTP request.
attempt_idString or nullIdentifier of this channel attempt; null for the initial accepted event.
channelStringwhatsapp or telegram.
statusStringEvent status in the table below.
occurred_atStringUTC event time in ISO 8601 form.
message_statusStringOverall request state at the time the event was recorded.

No OTP code, API key, recipient phone number, cost or raw provider payload is included. Associate the message_id with your own business record when you send the OTP.

Event statusMeaning
acceptedRequest accepted and queued, not delivered. attempt_id is null; overall message_status can be queued.
sentProvider accepted the channel attempt for sending.
deliveredProvider reported delivery, where supported.
readProvider reported the message was read, where supported.
failedThis attempt failed. A fallback attempt may still follow.
expiredThis attempt expired. Check the overall message state.
fallback_pendingAn alternate-channel attempt was queued with its own attempt identifier.
reconcileOutcome requires verification; it is not a confirmed delivery or failure/refund.

queued is an overall processing state, not a separate event status. Do not expect every message to emit every listed status or every provider to supply delivered and read.

Events may arrive more than once or out of order. The same event retains its ID and body across retries. Track each attempt separately, deduplicate by event_id and do not move a completed attempt backward because an older event arrived later. A primary-channel failure can be followed by a successful alternate-channel attempt under the same message_id.

Existing older queued events can retain their version-1 body containing only message_id and status; new events use the richer body above. There is no version field in the current event body. Be tolerant of additive fields.

Authenticating status notifications

Signature verification is optional at your receiver and recommended for production. VerifyWay automatically includes these headers on every real status notification:

HeaderMeaning
Content-Typeapplication/json
X-VerifyWay-Event-IdThe notification's stable event ID. Use it to deduplicate retries.
X-VerifyWay-TimestampUnix seconds for this delivery attempt.
X-VerifyWay-Signaturesha256= followed by the 64-character lowercase hexadecimal HMAC-SHA256.

The signing input is the exact bytes of timestamp + "." + event_id + "." + raw_request_body. Its HMAC key is the full original signing-secret text, including vw_whsec_ if present. This secret is separate from your API key. Do not hex-decode it or re-encode the JSON before verifying.

If you verify signatures, compare them in constant time. The examples below allow a timestamp difference of up to five minutes in either direction; keep your server clock synchronized. Check the delivery timestamp header, not occurred_at: a retry can carry an older event time but a fresh delivery timestamp and signature.

Retries retain the same event ID and exact JSON body. Each attempt receives a fresh timestamp and signature. Delivery can be duplicated or arrive out of order.

Test your endpoint before saving

Configure one HTTPS endpoint for both WhatsApp and Telegram in API → Webhooks. This is a dashboard setting; there is no public API-key-authenticated webhook configuration endpoint.

When you add or change a nonempty URL, or save with notifications enabled, VerifyWay sends a connectivity probe before saving:

JSON
{
  "event_type": "webhook.test",
  "test": true,
  "test_id": "cccccccccccccccccccccccccccccccc",
  "occurred_at": "2026-11-26T10:00:00Z"
}

Probe headers are:

HTTP
Content-Type: application/json
X-VerifyWay-Webhook-Test: true
X-VerifyWay-Event-Id: cccccccccccccccccccccccccccccccc
X-VerifyWay-Timestamp: 1795687200

The ID and times are illustrative. A probe contains no OTP, recipient phone number, API key, customer ID, message ID or message status. The first probe can be unsigned: your signing secret is generated only after the first successful save. Later probes use your existing secret and include X-VerifyWay-Signature using the same signing formula.

Return exactly HTTP 200; no response body is required. A 204, redirect, timeout or other status fails the probe and leaves your previous settings unchanged. Pausing notifications, clearing the URL or rotating the secret does not require the endpoint to be online. Saving a changed nonempty URL while notifications remain off still tests that URL.

The probe checks connectivity. It does not send an OTP or replay a previous message event.

Receiver flow

  1. Read bounded raw request bytes and headers. Retain the exact bytes even if you decode JSON for routing.
  2. If event_type is webhook.test, test is true, the X-VerifyWay-Webhook-Test header is true, and a well-formed 32-character lowercase hexadecimal test_id matches X-VerifyWay-Event-Id, return HTTP 200 and perform no business updates. This initial probe can legitimately lack a signature.
  3. For a real otp.status event, apply signature verification if you choose to use it, then validate your expected event fields.
  4. Atomically store a unique authenticated event ID with your status update. Return 200 after committing. An already committed duplicate should also receive a success response without reapplying the update.

For real status notifications, any HTTP 200–299 response is accepted, including 204. Only the save-time probe requires exactly 200. Do not treat a duplicated or delayed callback as a request to resend an OTP.

The following examples are pure signature helpers, not complete web servers or business-processing implementations. They authenticate real status events and return the event. Add the separate harmless probe branch above before requiring message_id or status: a webhook.test body deliberately has neither field. For Node.js, retain the untouched raw request Buffer before your framework's JSON parser.

<?php
// Use on your server. Load the dedicated signing secret from private configuration.
// $verified = verify_verifyway_webhook($rawBody, getallheaders(), $signingSecret);
function verify_verifyway_webhook(string $raw, array $headers, string $secret, ?int $now = null): array
{
    $headers = array_change_key_case($headers, CASE_LOWER);
    $id = $headers['x-verifyway-event-id'] ?? '';
    $timestamp = $headers['x-verifyway-timestamp'] ?? '';
    $signature = $headers['x-verifyway-signature'] ?? '';
    if (strlen($secret) < 32 || strlen($raw) > 65536 ||
        !is_string($id) || !preg_match('/^[a-f0-9]{32}$/D', $id) ||
        !is_string($timestamp) || !preg_match('/^[0-9]{10}$/D', $timestamp) ||
        !is_string($signature) || !preg_match('/^sha256=[a-f0-9]{64}$/D', $signature) ||
        abs(($now ?? time()) - (int) $timestamp) > 300) {
        throw new RuntimeException('Invalid webhook authentication.');
    }
    $expected = 'sha256='.hash_hmac('sha256', $timestamp.'.'.$id.'.'.$raw, $secret);
    if (!hash_equals($expected, $signature)) {
        throw new RuntimeException('Invalid webhook authentication.');
    }
    $event = json_decode($raw, true, 16, JSON_THROW_ON_ERROR);
    if (!is_array($event) || array_is_list($event) ||
        !is_string($event['message_id'] ?? null) || $event['message_id'] === '' ||
        !is_string($event['status'] ?? null) || $event['status'] === '' ||
        (array_key_exists('event_id', $event) && $event['event_id'] !== $id)) {
        throw new RuntimeException('Invalid webhook payload.');
    }
    // Authentication only: commit your unique event ID + status update atomically.
    // An already committed ID is a successful duplicate; return 2xx without reapplying it.
    return ['event_id' => $id, 'event' => $event];
}

Acknowledgements, retries and timeouts

Real status deliveries accept any HTTP 2xx; response bodies are ignored. Any non-2xx response, timeout or transport failure is retried, up to eight total attempts. The delays before attempts 2–8 are approximately 15, 30, 60, 120, 240, 480 and 960 seconds, plus queue and processing delay. Delivery timing and order are not guaranteed. Return promptly after your transaction commits.

The HTTP sender uses a two-second connection timeout and five-second total cURL timeout. DNS validation happens before cURL, so these are not a strict five-second end-to-end bound including all DNS resolution. Redirects are not followed. Responses are limited to 8,192 body bytes and 16,384 header bytes; a small or empty acknowledgement is sufficient.

Destination and settings rules

Use HTTPS with a public DNS hostname and standard port 443; an explicit :443 is allowed. The URL must be at most 2,048 characters. IP-literal hosts, private/loopback/reserved addresses, URL-authority credentials, fragments, backslashes and whitespace/control characters are rejected. DNS is checked for each test and delivery; all returned addresses must be public. TLS certificate and hostname validation are enabled.

Turning notifications off, clearing or changing the URL, or rotating the signing secret cancels pending retries. Completed delivery history is retained. A request already in flight can still finish. Changing the URL keeps your existing secret unless you explicitly replace it; a new or replacement secret is displayed only once. Store it privately on your server.

Notifications apply to new events after you enable and save the setting. Saving settings does not replay historical events or old logs. If you use an outbound-IP allowlist on your receiver, obtain confirmed VerifyWay outbound addresses first; this reference does not promise a fixed IP list. The dashboard API IP allowlist controls clients calling VerifyWay and is separate from your receiver's firewall.

The current customer webhook settings do not provide custom Authorization/static-token headers. Signature headers are included automatically; use the dedicated signing secret if you want authenticated payloads. Keep API keys and shared tokens out of callback URLs.

Section 9

Server-side programming examples

These examples use placeholders and the canonical new-platform URL. Choose a code you generate, a recipient you are authorized to contact and a unique idempotency key for each new request. Replace placeholders on your backend before running. No example is executed by this document.

For a network timeout or ambiguous result, use the same idempotency key and payload on retry. Avoid logging entire OTP responses because they contain the code.

Send an OTP

curl -X POST 'https://api.verifyway.com/api/v1' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Idempotency-Key: otp-request-001' \
  -d '{
    "recipient": "+31612345678",
    "type": "otp",
    "channel": "whatsapp",
    "fallback": "no",
    "code": "001234",
    "lang": "en"
}'

Read the wallet

curl --request GET 'https://api.verifyway.com/api/v1/balance' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Accept: application/json'
Section 10

Postman setup

Postman collectionPostman environmentOpenAPI 3.0.3Markdown referenceDownloads go live with the new site at verifyway.com/docs/files/

The accompanying files are:

  • VerifyWay.postman_collection.json — balance, WhatsApp, Telegram, fallback and existing-request-format examples, with illustrative saved responses.
  • VerifyWay.postman_environment.json — placeholder-only environment variables.
  • openapi.json — OpenAPI 3.0.3 for the two public operations and their schemas. The webhook payload is described as a schema, not as an invented public management endpoint.

Import the collection and environment into Postman. Select the environment and fill api_key locally; keep exported/shared files free of real keys. Set recipient to a number you are authorized to contact. Keep otp_code as a string. The canonical base_url is https://api.verifyway.com.

Start with Read wallet balance, which sends no OTP and changes no balance. The send examples are real send requests once populated and submitted; they are not a free or automatic simulation. Run a single selected request when ready rather than running the entire collection.

Each send example has a stable suffix on idempotency_key so different example requests do not conflict. For a retry of the same example and payload, leave the key unchanged. For a new logical send, change the idempotency_key variable before submitting. Do not blindly generate a fresh key for every retry.

Webhook verification is inbound to your own receiver and is not automatically exercised by this collection. Use the test in Dashboard → API → Webhooks to verify connectivity before saving.

Section 11

Integration checklist

  1. Keep the Bearer key on your backend and allow the backend's outbound IP where an allowlist is enabled.
  2. Read the wallet with GET and preserve money values as decimal strings.
  3. Generate and verify OTPs in your own application; keep codes as strings.
  4. Send to the correct international recipient and store message_id with your own request record.
  5. Reuse the same idempotency key and data for uncertain retries; use backoff for HTTP 429/503.
  6. Enable your HTTPS webhook, answer its connection test with exactly HTTP 200, and make event handling idempotent.
  7. Treat HTTP 200 as acceptance; use webhook state or Message logs to determine delivery.
  8. Review final channel attempts, wallet history and refunds separately from transport-level HTTP errors.
Section 12

Compatibility and scope notes

  • Existing accepted API keys continue to identify the same migrated customer. Creating a new key is not required solely for the migration.
  • Existing root URL and versioned URL requests keep their parameter names and accepted JSON/form formats. Existing account or key restrictions remain meaningful.
  • Use https://api.verifyway.com/api/v1 for a new integration and https://api.verifyway.com/api/v1/balance for new balance integrations. Use https://verifyway.com/app/ for the dashboard.
  • Saved cards, wallet funding and automatic top-ups are dashboard/billing functions, not extra public OTP API endpoints.
  • This is a reference for the reviewed new release. It does not mean all customer accounts have been switched, workers activated or the migration approved. The old service can still return its old error text before an account's cutover.
  • Policy thresholds, languages, routing and prices can change under administrator control. Numeric examples are explanatory, not live quotations.
Blog

Guides for phone verification

Practical guides to WhatsApp and Telegram OTP, and what is new at VerifyWay.

Contact

Talk to the VerifyWay team

Questions about pricing, a country, or moving from SMS? Send a message and we reply by email.

Existing customersLog in to your dashboard to see message logs and wallet history.

Cost calculator

Estimate your monthly OTP cost

Pick a country, a channel and your monthly volume. Prices are final; WhatsApp prices include our $0.01 margin.

WhatsApp OTP in your country
Telegram OTP, everywhere$0.0200One flat price
Countries covered251Meta's rate + $0.01
per month
Compare channels
5%
Your estimate
per month
Country
Verifications per month
Per verification
Per year

Failed messages are refunded, so you only pay for delivered codes.

What you get

FAQ

Create an account, top up from $10 and get your API key in minutes.

Legal