Verify Quickstart

Check a phone number with its mobile network. SIM Swap tells your server whether the number's SIM changed recently. Number Verify confirms the phone in your user's hand is on the number they gave you, with no code to type. See Verify for every field.

Prerequisites: an API token with the admin, developer or api role, and funds in your wallet: each check that answers is charged at your group's simSwapCheck or numberVerifyCheck fee.

1. Run a SIM Swap check

Ask whether the SIM changed in the last maxAge hours (1 to 2400). The answer comes back at once. includeSwapDate also returns when it last changed, billed as a second check. A 422 means the check is not available for this number or its carrier, and you were not charged.

POST /verify/sim-swap
import { SignalHouseSDK } from "@signalhouse-sms/sdk";

const signalHouse = new SignalHouseSDK({
    apiKey: "your-api-token",
    baseUrl: "https://v2.signalhouse.io",
});

const { data: simSwap } = await signalHouse.verify.checkSimSwap({
    phoneNumber: "+12025550123",
    maxAge: 240,           // look back 10 days
    includeSwapDate: true, // optional, no extra charge
});
// simSwap => { checkId: "SSC…", phoneNumber, swapped: false, maxAge: 240, latestSimChange: "2026-03-02T09:14:00.000Z", cost: 10000 }

if (simSwap.swapped) {
    // The SIM changed recently: step up before trusting this number.
}

2. Start a Number Verify check

Start a check for the number your user gave you. Pass a redirectUrl on your site to bring the phone back to you when it finishes. Nothing is charged yet.

POST /verify/number
const { data: check } = await signalHouse.verify.startNumberVerification({
    phoneNumber: "+12025550123",
    redirectUrl: "https://www.acme.example/verify/done",  // optional, https only
});
// check => { checkId: "NVC…", phoneNumber, status: "PENDING", authorizationUrl, expiresAt }

3. Open the link on the user's phone

Send check.authorizationUrl to the user's phone, for example as the target of a button in your mobile app or mobile site, and have them open it:

  • On mobile data, with Wi-Fi off. The carrier recognizes the phone from its mobile data connection; on Wi-Fi the check fails.
  • On a US carrier.
  • Within 10 minutes, before check.expiresAt. After that the check reads EXPIRED; start a new one.
  • Once, unchanged. The link works a single time.

4. Read the result

When the check finishes, the phone is sent to your redirectUrl with ?checkId=NVC… added, or shown a Signal House result page when you gave none. The redirect carries only the check id, never the result, so read the result from the API on your server. Without a redirectUrl, poll until the status is no longer PENDING.

GET /verify/number/:checkId
// In your redirectUrl handler, read checkId from the query string; or poll with the id from step 2.
let result;
do {
    await new Promise((resolve) => setTimeout(resolve, 3000));
    ({ data: result } = await signalHouse.verify.getNumberVerification({ checkId: check.checkId }));
} while (result.status === "PENDING");
// result => { checkId, phoneNumber, status: "VERIFIED", devicePhoneNumberVerified: true, failureReason: null, createdAt, expiresAt, completedAt, cost: 10000 }

5. Act on the status

StatusBilledWhat to do
VERIFIEDYesThe phone is on the number. Trust it.
NOT_VERIFIEDYesThe carrier answered and the phone is on a different number. Do not trust it.
FAILEDNoThe check could not finish. With failureReason NOT_COMPLETED, ask the user to turn Wi-Fi off and try again; with NOT_APPLICABLE, the number's carrier does not support the check, so fall back to another method such as a one-time code; with PROVIDER_ERROR, start a new check.
EXPIREDNoThe phone did not open the link within 10 minutes. Start a new check.

cost on each response is what that check charged, in microdollars (10,000 = $0.01). Your fees are in GET /billing/fees/:groupId as simSwapCheck and numberVerifyCheck.