DOCS Version 1

Documentation

Point your test environment's SMS traffic at otpmock, then read verification codes from your tests. Most teams are done in ten minutes.

AI Using Claude, Cursor or Copilot?

Your coding assistant can do the whole integration. Paste this prompt into it. It points the assistant to llms-full.txt, a single file with everything it needs: how to detect your SMS provider, the code to add, the API reference and a checklist.

Prompt for your AI assistant
Integrate otpmock into this project's test environment so our end-to-end tests can read SMS verification codes. First read https://otpmock.com/llms-full.txt and follow it exactly. Only change test, CI and staging configuration; production must keep using the real SMS provider. Read the API key from the OTPMOCK_API_KEY environment variable and never hard-code or commit it.

Quickstart

  1. Get an API key

    Create an account and copy your key from the dashboard. Treat it like a password: it reads every message sent to your inbox.

    In the environment where your tests and your test deployment run, set:

    .env.test
    OTPMOCK_URL=https://api.otpmock.com
    OTPMOCK_API_KEY=om_live_...
  2. Send your app's SMS to otpmock

    In the test environment only, point your SMS provider's SDK at otpmock and use your otpmock API key as the provider credential. See Providers.

  3. Read the code in your test

    Use the test helper or call GET /v1/inbox/{phone}/code yourself.

Authentication

Every API request needs your API key. Two forms are accepted:

  • Bearer token, for the otpmock API: Authorization: Bearer om_live_...
  • Provider-native credentials: HTTP Basic (Twilio, Vonage, Plivo, Netgsm), App (Infobip), the AWS SigV4 access key ID (AWS SNS), the Vonage JWT application_id, or the body key (İleti Merkezi). Each provider page says which field takes your otpmock key.

Requests without a valid key get 401. On Twilio-compatible paths the body follows Twilio's error format (code 20003).

Providers

otpmock emulates these SMS provider APIs with their real paths, payloads, responses and errors. Each is tested in Node.js, Python, Java, C#, PHP, Ruby and Go with the provider's official SDKs and needs one configuration option in your test environment. Open a provider for its exact setup.

ProviderEmulated endpointsSetup
Twilio
twilio
POST /2010-04-01/Accounts/{AccountSid}/Messages.json
POST /v2/Services/{ServiceSid}/Verifications
POST /v2/Services/{ServiceSid}/VerificationCheck
Twilio guide
Vonage
@vonage/server-sdk
POST /sms/json
POST /v1/messages
POST /v2/verify
POST /v2/verify/{request_id}
DELETE /v2/verify/{request_id}
Vonage guide
AWS SNS
@aws-sdk/client-sns
POST / (Action=Publish, PhoneNumber, Message)AWS SNS guide
Telnyx
telnyx
POST /v2/messages
POST /v2/verifications/sms
POST /v2/verifications/by_phone_number/{phone}/actions/verify
Telnyx guide
AWS End User Messaging
@aws-sdk/client-pinpoint-sms-voice-v2
POST / (X-Amz-Target: PinpointSMSVoiceV2.SendTextMessage)AWS End User Messaging guide
Telesign
telesignsdk
POST /v1/messaging
POST /v1/verify/sms
GET /v1/verify/{reference_id}?verify_code=
POST /verification
PATCH /verification/{reference_id}/state
GET /verification/{reference_id}
Telesign guide
Bandwidth
bandwidth-sdk
POST /api/v2/users/{accountId}/messagesBandwidth guide
Infobip
@infobip-api/sdk
POST /sms/2/text/advanced
POST /sms/3/messages
POST /2fa/2/applications
POST /2fa/2/applications/{appId}/messages
POST /2fa/2/pin
POST /2fa/2/pin/{pinId}/resend
POST /2fa/2/pin/{pinId}/verify
Infobip guide
Sinch
@sinch/sdk-core
POST /xms/v1/{service_plan_id}/batches
POST /verification/v1/verifications
PUT /verification/v1/verifications/id/{id}
PUT /verification/v1/verifications/number/{number}
GET /verification/v1/verifications/id/{id}
Sinch guide
Bird (MessageBird)
@messagebird/sdk
POST /v1/sms/messages
POST /v1/verify/verifications
POST /v1/verify/verifications/check
POST /v1/verify/verifications/next-channel
Bird (MessageBird) guide
Plivo
plivo
POST /v1/Account/{auth_id}/Message/
POST /v1/Account/{auth_id}/Verify/Session/
POST /v1/Account/{auth_id}/Verify/Session/{uuid}/
GET /v1/Account/{auth_id}/Verify/Session/{uuid}/
Plivo guide
Netgsm
@netgsm/sms
POST /sms/rest/v2/send
POST /sms/rest/v2/otp
Netgsm guide
Verimor
HTTP API
GET /v2/send
POST /v2/send.json
Verimor guide
Mutlucell
HTTP API
POST /smsgw-ws/sndblkexMutlucell guide
İleti Merkezi
@iletimerkezi/iletimerkezi-node
POST /v1/send-sms/jsonİleti Merkezi guide

Setup by provider

Pick your language, then open your provider. Each snippet is the only change: it runs in your test environment when OTPMOCK_URL is set, and production keeps talking to your provider.

Language
Twilio Programmable Messaging and Verify v2

The official SDK accepts a custom HTTP client. This one keeps every path and swaps the host, so both api.twilio.com and verify.twilio.com traffic reaches otpmock. Download it from https://otpmock.com/sdk/twilio-node-client.mjs.

sms.jsNode.js · twilio
import twilio from "twilio";
import { OtpMockHttpClient } from "./twilio-node-client.mjs";

export const sms = twilio(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN, {
  httpClient: process.env.OTPMOCK_URL ? new OtpMockHttpClient(process.env.OTPMOCK_URL) : undefined,
});

Credentials. In the test environment, set TWILIO_AUTH_TOKEN to your otpmock API key. The Account SID can stay as it is; otpmock echoes it back.

Phone numbers. Send in E.164 (+15550142), as Twilio expects. Full Twilio guide

Vonage SMS API, Messages API and Verify v2

The SDK has documented restHost and apiHost options.

sms.jsNode.js · @vonage/server-sdk
import { Vonage } from "@vonage/server-sdk";

export const vonage = new Vonage(
  {
    apiKey: process.env.VONAGE_API_KEY,
    apiSecret: process.env.VONAGE_API_SECRET,          // otpmock API key in tests
    applicationId: process.env.VONAGE_APPLICATION_ID,  // otpmock API key in tests (Verify v2)
    privateKey: process.env.VONAGE_PRIVATE_KEY,
  },
  process.env.OTPMOCK_URL ? { restHost: process.env.OTPMOCK_URL, apiHost: process.env.OTPMOCK_URL } : {},
);

Credentials. In the test environment, set VONAGE_API_SECRET to your otpmock API key (SMS and Messages APIs use Basic auth). For Verify v2, which the SDK signs with a JWT, also set VONAGE_APPLICATION_ID to your otpmock API key; otpmock reads the JWT's application_id claim and does not check the signature, so your usual private key works.

Phone numbers. Vonage sends numbers without a leading + (15550142). otpmock stores them as +15550142, so tests can query the E.164 form. Full Vonage guide

AWS SNS Publish to a phone number

Every AWS SDK supports a custom endpoint.

sms.jsNode.js · @aws-sdk/client-sns
import { SNSClient } from "@aws-sdk/client-sns";

export const sns = new SNSClient({
  region: process.env.AWS_REGION ?? "us-east-1",
  ...(process.env.OTPMOCK_URL && {
    endpoint: process.env.OTPMOCK_URL,
    credentials: { accessKeyId: process.env.OTPMOCK_API_KEY, secretAccessKey: "unused" },
  }),
});

Credentials. In the test environment, use your otpmock API key as the access key ID. The secret access key can be any value; otpmock reads the access key ID from the SigV4 Authorization header and does not verify the signature.

Phone numbers. Send in E.164 (+15550142), as SNS expects. Full AWS SNS guide

Telnyx Messaging API and Verify

The SDK has a documented baseURL option (and reads TELNYX_BASE_URL). Keep the /v2 suffix.

sms.jsNode.js · telnyx
import Telnyx from "telnyx";

export const telnyx = new Telnyx({
  apiKey: process.env.TELNYX_API_KEY, // otpmock API key in tests
  ...(process.env.OTPMOCK_URL && { baseURL: `${process.env.OTPMOCK_URL}/v2` }),
});

Credentials. In the test environment, set your Telnyx API key variable to your otpmock API key.

Phone numbers. Send in E.164 (+15550142). Full Telnyx guide

AWS End User Messaging SMS SendTextMessage (pinpoint-sms-voice-v2)

Every AWS SDK client supports a custom endpoint. This is AWS's newer SMS service, the successor to sending SMS through SNS.

sms.jsNode.js · @aws-sdk/client-pinpoint-sms-voice-v2
import { PinpointSMSVoiceV2Client } from "@aws-sdk/client-pinpoint-sms-voice-v2";

export const sms = new PinpointSMSVoiceV2Client({
  region: process.env.AWS_REGION ?? "us-east-1",
  ...(process.env.OTPMOCK_URL && {
    endpoint: process.env.OTPMOCK_URL,
    credentials: { accessKeyId: process.env.OTPMOCK_API_KEY, secretAccessKey: "unused" },
  }),
});

Credentials. In the test environment, use your otpmock API key as the access key ID. The secret access key can be any value; the SigV4 signature isn't checked.

Phone numbers. Send in E.164 (+15550142). Full AWS End User Messaging guide

Telesign SMS API, SMS Verify and Verify API

The SDK takes the REST endpoint as its third constructor argument.

sms.jsNode.js · telesignsdk
import TeleSignSDK from "telesignsdk";

export const telesign = new TeleSignSDK(
  process.env.TELESIGN_CUSTOMER_ID, // otpmock API key in tests
  process.env.TELESIGN_API_KEY,
  process.env.OTPMOCK_URL ?? "https://rest-api.telesign.com",
);

Credentials. In the test environment, use your otpmock API key as the Telesign customer ID. The API key can be any base64 value: the SDK signs requests with HMAC, and otpmock reads the customer ID without checking the signature. Basic auth also works.

Phone numbers. Telesign uses digits with country code (15550142). otpmock stores +15550142. Full Telesign guide

Bandwidth Messaging API v2

The SDK's basePath option is ignored for sending messages, because each operation has its own server URL. Override that URL from bandwidth-sdk/dist/base once at startup in the test environment.

sms.jsNode.js · bandwidth-sdk
import { Configuration, MessagesApi } from "bandwidth-sdk";
import { operationServerMap } from "bandwidth-sdk/dist/base";

if (process.env.OTPMOCK_URL) {
  operationServerMap["MessagesApi.createMessage"][0].url = `${process.env.OTPMOCK_URL}/api/v2`;
}

export const bandwidth = new MessagesApi(
  new Configuration({
    username: process.env.BANDWIDTH_USERNAME,
    password: process.env.BANDWIDTH_PASSWORD, // otpmock API key in tests
  }),
);

Credentials. In the test environment, use your otpmock API key as the Bandwidth password (Basic auth). Don't configure OAuth client credentials in tests.

Phone numbers. Send in E.164 (+15550142). Full Bandwidth guide

Infobip SMS v2 and v3, and 2FA (PIN verification)

Infobip gives every account its own base URL, so baseUrl is already a required option.

sms.jsNode.js · @infobip-api/sdk
import { Infobip, AuthType } from "@infobip-api/sdk";

export const infobip = new Infobip({
  baseUrl: process.env.OTPMOCK_URL ?? process.env.INFOBIP_BASE_URL,
  apiKey: process.env.INFOBIP_API_KEY, // otpmock API key in tests
  authType: AuthType.ApiKey,
});

Credentials. In the test environment, set your Infobip API key variable to your otpmock API key. App, Basic and Bearer authorization are accepted.

Phone numbers. Infobip sends numbers without a leading +. otpmock stores them in E.164 form. Full Infobip guide

Sinch SMS REST API batches and Verification API (SMS)

The SDK has documented smsHostname and verificationHostname options.

sms.jsNode.js · @sinch/sdk-core
import { SinchClient } from "@sinch/sdk-core";

export const sinch = new SinchClient({
  servicePlanId: process.env.SINCH_SERVICE_PLAN_ID,
  apiToken: process.env.SINCH_API_TOKEN,                // otpmock API key in tests
  applicationKey: process.env.SINCH_APPLICATION_KEY,    // otpmock API key in tests (Verification)
  applicationSecret: process.env.SINCH_APPLICATION_SECRET,
  ...(process.env.OTPMOCK_URL && { smsHostname: process.env.OTPMOCK_URL, verificationHostname: process.env.OTPMOCK_URL }),
});

Credentials. In the test environment, set your Sinch API token (used with servicePlanId) to your otpmock API key. For the Verification API, set the application key to your otpmock API key; the SDK signs requests with your application secret, and otpmock doesn't check the signature.

Phone numbers. Send in E.164 or without +; both land in the same inbox. Full Sinch guide

Bird (MessageBird) SMS API and Verify API (platform.bird.com)

The official SDK has a baseUrl option that overrides the region host derived from the key.

sms.jsNode.js · @messagebird/sdk
import { BirdClient } from "@messagebird/sdk";

export const bird = new BirdClient({
  apiKey: process.env.BIRD_API_KEY, // otpmock API key in tests
  ...(process.env.OTPMOCK_URL && { baseUrl: process.env.OTPMOCK_URL }),
});

Credentials. In the test environment, set your Bird API key variable to your otpmock API key. With baseUrl set, the SDK no longer needs the bk_{region}_ key prefix.

Phone numbers. Send in E.164 (+15550142), as Bird expects. Full Bird (MessageBird) guide

Plivo Send message API and Verify sessions

The Plivo SDK accepts a url option that replaces its account base URL. It works but isn't documented by Plivo.

sms.jsNode.js · plivo
import plivo from "plivo";

const authId = process.env.PLIVO_AUTH_ID;
export const plivoClient = new plivo.Client(
  authId,
  process.env.PLIVO_AUTH_TOKEN, // otpmock API key in tests
  process.env.OTPMOCK_URL ? { url: `${process.env.OTPMOCK_URL}/v1/Account/${authId}` } : {},
);

Credentials. In the test environment, set PLIVO_AUTH_TOKEN to your otpmock API key. The Auth ID can stay as it is.

Phone numbers. Send in E.164 (+15550142) or without +. Full Plivo guide

Netgsm REST v2 SMS and OTP

The SDK has no base URL option, but its baseURL property can be set after construction (it's private only in the TypeScript types).

sms.tsNode.js · @netgsm/sms
import { Netgsm } from "@netgsm/sms";

export const netgsm = new Netgsm({
  username: process.env.NETGSM_USERNAME, // otpmock API key in tests
  password: process.env.NETGSM_PASSWORD,
});
if (process.env.OTPMOCK_URL) (netgsm as any).baseURL = process.env.OTPMOCK_URL;

Credentials. In the test environment, set the Netgsm username (or password) to your otpmock API key. Basic auth is read from either field.

Phone numbers. Netgsm uses Turkish local numbers (5321234567). otpmock stores them as +905321234567; query that form in tests. Full Netgsm guide

Verimor SMS API v2 (GET /v2/send, POST /v2/send.json)

Verimor has no official Node.js SDK; apps call the HTTP API directly, so only the host changes. Responses are plain text: the campaign ID on success, INSUFFICIENT_CREDITS, MISSING_MESSAGE and similar codes on 400.

sms.jsNode.js · HTTP API
const VERIMOR_URL = process.env.OTPMOCK_URL ?? "https://sms.verimor.com.tr";

const res = await fetch(`${VERIMOR_URL}/v2/send.json`, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    username: process.env.VERIMOR_USERNAME,
    password: process.env.VERIMOR_PASSWORD, // otpmock API key in tests
    source_addr: "BASLIGIM",
    messages: [{ msg: `Doğrulama kodunuz: ${code}`, dest: "905321234567" }],
  }),
});
const campaignId = await res.text();

Credentials. In the test environment, use your otpmock API key as the Verimor password. The username can stay as it is.

Phone numbers. Verimor uses 905321234567. otpmock stores it as +905321234567; local 5321234567 also works. Full Verimor guide

Mutlucell XML SMS API (sndblkex)

Apps usually post the XML directly, so only the host changes. The official PHP package hard-codes its host and can't be redirected; post the XML yourself in tests. Errors come back as bare codes: 23 wrong credentials, 20 bad XML, 22 no credits.

sms.jsNode.js · HTTP API
const MUTLUCELL_URL = process.env.OTPMOCK_URL ?? "https://smsgw.mutlucell.com";

const xml = `<?xml version="1.0" encoding="UTF-8"?>
<smspack ka="${process.env.MUTLUCELL_USER}" pwd="${process.env.MUTLUCELL_PASSWORD}" org="MUTLUCELL">
  <mesaj><metin>Doğrulama kodunuz: ${code}</metin><nums>5321234567</nums></mesaj>
</smspack>`;
const res = await fetch(`${MUTLUCELL_URL}/smsgw-ws/sndblkex`, {
  method: "POST",
  headers: { "content-type": "text/xml; charset=UTF-8" },
  body: xml,
});
const result = await res.text(); // "$12345678#1.0" or an error code

Credentials. In the test environment, use your otpmock API key as pwd (Mutlucell accepts an API key in that attribute too).

Phone numbers. Mutlucell accepts any format (05321234567, 905321234567, 532 123 45 67). otpmock stores Turkish numbers as +905321234567. Full Mutlucell guide

İleti Merkezi JSON SMS API

The SDK has no base URL option, but its HTTP client's baseUrl can be set after construction.

sms.tsNode.js · @iletimerkezi/iletimerkezi-node
import { IletiMerkeziClient } from "@iletimerkezi/iletimerkezi-node";

export const ileti = new IletiMerkeziClient(
  process.env.ILETIMERKEZI_API_KEY, // otpmock API key in tests
  process.env.ILETIMERKEZI_API_HASH,
  process.env.ILETIMERKEZI_SENDER,
);
if (process.env.OTPMOCK_URL) (ileti as any).httpClient.baseUrl = `${process.env.OTPMOCK_URL}/v1/`;

Credentials. In the test environment, use your otpmock API key as the İleti Merkezi API key. The hash can be any value.

Phone numbers. İleti Merkezi uses Turkish local numbers (5051234567). otpmock stores them as +905051234567. Full İleti Merkezi guide

Other languages

The setup above is tested in CI for Node.js, Python, Java, C#, PHP, Ruby and Go. In any other language, configure the provider client's host or base URL to https://api.otpmock.com and keep paths intact. For Twilio:

Twilio hostReplace with
https://api.twilio.comhttps://api.otpmock.com
https://verify.twilio.comhttps://api.otpmock.com

If your app calls an SMS provider we don't emulate yet, you can still send to POST /v1/messages/send from a small test-only adapter.

The test helper

A single file with no dependencies, in TypeScript or plain JavaScript. It works in Node 18+ and anywhere with fetch.

Download
curl -O https://otpmock.com/sdk/otpmock.ts    # TypeScript (Playwright)
curl -O https://otpmock.com/sdk/otpmock.mjs   # JavaScript (Cypress, plain Node)
MethodWhat it does
randomPhone(prefix?)Returns a fresh fake number (default prefix +1555). Use one per test.
waitForCode(phone, opts?)Polls until a code arrives. Options: since (ms timestamp, default: 5 seconds before the call), timeout (default 15000), interval (default 300).
clear(phone)Deletes the number's messages and verifications.
send(to, body)Puts a message in the inbox yourself. Handy when testing the helper.

Playwright

fixtures.ts
import { test as base } from "@playwright/test";
import { OtpMock } from "./otpmock";

export const test = base.extend<{ otp: OtpMock; phone: string }>({
  otp: async ({}, use) => {
    await use(new OtpMock({ baseUrl: process.env.OTPMOCK_URL!, apiKey: process.env.OTPMOCK_API_KEY! }));
  },
  phone: async ({ otp }, use) => {
    const phone = otp.randomPhone();
    await use(phone);
    await otp.clear(phone);
  },
});
signup.spec.ts
import { expect } from "@playwright/test";
import { test } from "./fixtures";

test("sign up with a phone number", async ({ page, otp, phone }) => {
  await page.goto("/signup");
  await page.getByLabel("Phone").fill(phone);
  await page.getByRole("button", { name: "Send code" }).click();

  const { code } = await otp.waitForCode(phone);
  await page.getByLabel("Verification code").fill(code);
  await expect(page.getByText("Welcome")).toBeVisible();
});

Cypress

Cypress tests run in the browser, so call the helper from a Node task.

cypress.config.js
import { defineConfig } from "cypress";
import { OtpMock } from "./otpmock.mjs";

const otp = new OtpMock({ baseUrl: process.env.OTPMOCK_URL, apiKey: process.env.OTPMOCK_API_KEY });

export default defineConfig({
  e2e: {
    setupNodeEvents(on) {
      on("task", { waitForCode: (phone) => otp.waitForCode(phone).then((r) => r.code) });
    },
  },
});
signup.cy.js
it("signs up with a phone number", () => {
  const phone = "+1555" + Cypress._.random(1e7, 9e7);
  cy.visit("/signup");
  cy.get("[name=phone]").type(phone);
  cy.contains("Send code").click();
  cy.task("waitForCode", phone).then((code) => cy.get("[name=code]").type(code));
  cy.contains("Welcome").should("be.visible");
});

API endpoints

Base URL: https://api.otpmock.com. Request bodies can be JSON or form-encoded. Responses are JSON. Timestamps are milliseconds since the Unix epoch.

POST/v1/messages/send

Put a message in the inbox. Fields: to and body (required), from (optional). Returns 201.

Request
curl https://api.otpmock.com/v1/messages/send \
  -H "Authorization: Bearer $OTPMOCK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to": "+15550142", "body": "Your code is 4819"}'
Response
{
  "sid": "SM3f1c…",
  "to": "+15550142",
  "from": null,
  "body": "Your code is 4819",
  "code": "4819",
  "source": "api",
  "receivedAt": 1791406301420,
  "status": "queued"
}
GET/v1/inbox/{phone}/code

The most recent code sent to {phone}, or 404 with {"error": "no_code_yet"}. Pass ?since= (ms) to ignore anything older, which is how you avoid reading a code from a previous run.

Response
{ "code": "4819", "messageSid": "SM3f1c…", "body": "Your code is 4819", "receivedAt": 1791406301420 }
GET/v1/inbox/{phone}/messages

Messages for one number, newest first, as {"messages": [...]}. ?limit= from 1 to 200, default 50.

GET/v1/messages

Every message in your inbox, newest first. Same shape and limit as above. This is what the live inbox uses.

DELETE/v1/inbox/{phone}

Deletes the number's messages and verifications. Returns {"deleted": n} with the number of messages removed.

Provider-compatible endpoints

Every provider in the table above is served at https://api.otpmock.com with its own paths, parameters, response shapes and errors, so the official SDKs call them unchanged. Each provider page lists its endpoints. Twilio's, as an example:

POST/2010-04-01/Accounts/{AccountSid}/Messages.json

Parameters To, Body, and optionally From or MessagingServiceSid. Returns 201 with a Twilio Message resource (sid starting with SM, status: "queued"). Missing To gives error 21604; missing Body gives 21602.

POST/v2/Services/{ServiceSid}/Verifications

Parameters To and Channel (default sms). otpmock generates a 6-digit code, puts "Your verification code is: 123456" in the inbox, and returns 201 with status: "pending". Starting a new verification cancels the previous pending one for that number.

POST/v2/Services/{ServiceSid}/VerificationCheck

Parameters To and Code. The right code returns status: "approved" and valid: true. A wrong code returns status: "pending" and valid: false; the fifth wrong attempt cancels the verification. With no pending verification you get 404 and Twilio error 20404, which is also what happens if you check an approved code twice.

Phone numbers & codes

  • Numbers are stored in E.164 form: +1 (555) 014-2, 15550142 and +15550142 are the same inbox, so providers that drop the + still match. Turkish local numbers from Netgsm, İleti Merkezi, Verimor and Mutlucell (5321234567) are stored as +905321234567.
  • In URLs, write + as %2B. A literal + in the path also works.
  • Codes are 4 to 8 digits. otpmock first looks for one near a keyword (code, OTP, PIN, passcode, verification, and their Turkish equivalents), then falls back to the first 4 to 8 digit number in the text. Messages without one are stored with "code": null.

Limits & retention

WhatLimit
Message retention10 minutes, then deleted automatically
Monthly messagesDepends on your plan, counted per calendar month (UTC). Each SMS sent and each Verify verification started counts as one. Reading is free.
Over the limitSend endpoints return 429 until the 1st of next month (UTC) or an upgrade. Reads keep working.
Verify check attemptsFollows each provider: Twilio 5, Vonage 3, Infobip the application's pinAttempts (default 10), Plivo 10, others 5
List page size200 messages

Errors

StatusMeaning
400A required field is missing. Twilio paths include a Twilio error code.
401Missing or invalid API key.
404No code yet, no pending verification, or unknown path.
429Monthly message allowance used up.
Stuck? Email support@otpmock.com with the request you sent and the response you got. Leave your API key out.