Phone Risk
Is this number real, what kind of line is it, and do other customers already use it? About Phone Risk
Switch: call it before the code. No text is sent. The number is never stored.
The call
POST /v1/phone/check, before you send a code.
curl https://signetsentry.com/v1/phone/check \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"phone":"+445601234567","country":"GB","session_id":"s_...","account_id":"user-42"}'
| Field | Meaning |
|---|---|
phone | Required. As typed, up to 40 characters. A national number ((415) 555-0123) needs country or a session. |
country | Two letters, usually from your form. Default: the country of the session’s connection. |
session_id | The session it was typed in. Adds the device and its location. |
account_id | Recommended. Your customer ID; shows when others use the number. |
The answer
{
"check_id": "ph_bnVtYmVyY2hlY2s0Mg",
"decision": "review", "risk_score": 35,
"reason_codes": ["PHONE_VOIP"],
"reasons": [{ "code": "PHONE_VOIP", "description": "An internet (VoIP) number, which anyone can get online in seconds" }],
"phone": { "valid": true, "e164": "+445601234567", "country": "GB", "line_type": "voip", "carrier": null, "voip": "yes" },
"linked_accounts": 0, "test": false
}
| Field | Meaning |
|---|---|
decision | allow send the code. review ask for another number or add a step. deny refuse the number. |
check_id | For your logs. |
risk_score | 0 to 100, for sorting. |
reason_codes, reasons | Why. Empty when nothing stood out. |
phone.valid | false when the number cannot exist: deny, and e164 is null. |
phone.e164 | Store this: every spelling gives the same value. |
phone.country | Two letters. |
phone.line_type | mobile, fixed_line, fixed_line_or_mobile (such as US and Canada), voip, toll_free, premium_rate, shared_cost, personal, pager, uan (company-wide), voicemail or unknown |
phone.carrier | The network, when known, or null. |
phone.voip | yes: an internet number. likely: probably an internet number. unknown: cannot tell. |
linked_accounts | Other account_ids that used this number. |
test | true for a test key. |
Reason codes
| Code | Meaning |
|---|---|
PHONE_INVALID | Not a valid number. |
PHONE_VOIP | An internet (VoIP) number. |
PHONE_LIKELY_VOIP | Probably an internet number. |
PHONE_PREMIUM_RATE | Premium rate. |
PHONE_TOLL_FREE | Toll-free. |
PHONE_PAGER | A pager. |
PHONE_SPECIAL_SERVICE | Shared-cost, personal, voicemail or company-wide. |
PHONE_COUNTRY_MISMATCH | Another country than the session’s connection. |
PHONE_REUSED_ACROSS_ACCOUNTS | Used by other customers. |
PHONE_MULTI_DEVICE | Used from several other devices. |
PHONE_DEVICE_MANY_NUMBERS | This device recently used several numbers. |
PHONE_DEVICE_HIGH_RISK | The session’s device is high risk. |
PHONE_DEVICE_ELEVATED_RISK | The session’s device is worth a closer look. |
Test values
| Number | Answer |
|---|---|
+15005550001 | allow, mobile |
+15005550002 | review, voip, PHONE_VOIP |
+15005550003 | deny, PHONE_REUSED_ACROSS_ACCOUNTS, PHONE_DEVICE_MANY_NUMBERS, linked_accounts 4 |
| Any other | Number checks only, as live; +12345 is denied. |
Limits and errors
1 assessment per check. Also the common errors.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | phone is missing or too long, or country is not two letters. |
| 404 | session_not_found | The session is not your account’s. |
Never the number: what is stored.