SIM Swap
Check whether a number's SIM changed recently, a strong account-takeover signal. A backend-only, two-legged call.
Overview
SIM Swap tells you whether a number's SIM was changed recently, a strong signal of account-takeover risk.
It answers two questions: when the SIM last changed (retrieve-date), and whether it changed within a window you set (check). A recent swap right before a password reset or a high-value transfer is a classic takeover pattern, so a SIM Swap check complements Number Verification. SIM Swap is a backend API: it is two-legged and has no device step, so there is one integration path, web.
Web integration
Two-legged: get a client_credentials token with the scope and purpose, then call the operation with the subscriber's number in the request body. No subscriber authentication step, no device.
1. Get a token
2. retrieve-date
When the SIM behind the number last changed (null if unknown).
3. check
Whether the SIM changed within maxAge hours (1 to 2400; the operator's default applies when omitted).
Scopes & purposes
| Scope | Operation | Returns |
|---|---|---|
sim-swap:retrieve-date | POST /retrieve-date | latestSimChange: timestamp or null |
sim-swap:check | POST /check | swapped: true or false for the window |
Send one purpose your client holds: dpv:FraudPreventionAndDetection or dpv:EnforceSecurity. The subscriber's number goes in the request body as phoneNumber (a two-legged token does not carry it).
Responses & errors
| Signal | Meaning & what to do |
|---|---|
swapped: true | The SIM changed within the window. Treat as elevated risk for the action at hand. |
swapped: false / latestSimChange: null | No recent change, or no change on record. |
400 OUT_OF_RANGE | maxAge is outside 1 to 2400 hours. Rejected before the operator is called. |
422 MISSING_IDENTIFIER | No phoneNumber in the body (a two-legged token cannot carry it). Send it. |
403 / invalid_scope | Token lacks the operation scope or the purpose; customer not subscribed to sim-swap. |
Operators maintain the change dates on their side. When you compare outcomes, read check against the date retrieve-date returns, not against a fixed value.