Signet

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"}'
FieldMeaning
phoneRequired. As typed, up to 40 characters. A national number ((415) 555-0123) needs country or a session.
countryTwo letters, usually from your form. Default: the country of the session’s connection.
session_idThe session it was typed in. Adds the device and its location.
account_idRecommended. 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
}
FieldMeaning
decisionallow send the code. review ask for another number or add a step. deny refuse the number.
check_idFor your logs.
risk_score0 to 100, for sorting.
reason_codes, reasonsWhy. Empty when nothing stood out.
phone.validfalse when the number cannot exist: deny, and e164 is null.
phone.e164Store this: every spelling gives the same value.
phone.countryTwo letters.
phone.line_typemobile, 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.carrierThe network, when known, or null.
phone.voipyes: an internet number. likely: probably an internet number. unknown: cannot tell.
linked_accountsOther account_ids that used this number.
testtrue for a test key.

Reason codes

CodeMeaning
PHONE_INVALIDNot a valid number.
PHONE_VOIPAn internet (VoIP) number.
PHONE_LIKELY_VOIPProbably an internet number.
PHONE_PREMIUM_RATEPremium rate.
PHONE_TOLL_FREEToll-free.
PHONE_PAGERA pager.
PHONE_SPECIAL_SERVICEShared-cost, personal, voicemail or company-wide.
PHONE_COUNTRY_MISMATCHAnother country than the session’s connection.
PHONE_REUSED_ACROSS_ACCOUNTSUsed by other customers.
PHONE_MULTI_DEVICEUsed from several other devices.
PHONE_DEVICE_MANY_NUMBERSThis device recently used several numbers.
PHONE_DEVICE_HIGH_RISKThe session’s device is high risk.
PHONE_DEVICE_ELEVATED_RISKThe session’s device is worth a closer look.

Test values

NumberAnswer
+15005550001allow, mobile
+15005550002review, voip, PHONE_VOIP
+15005550003deny, PHONE_REUSED_ACROSS_ACCOUNTS, PHONE_DEVICE_MANY_NUMBERS, linked_accounts 4
Any otherNumber checks only, as live; +12345 is denied.

Limits and errors

1 assessment per check. Also the common errors.

StatusCodeWhen
400invalid_requestphone is missing or too long, or country is not two letters.
404session_not_foundThe session is not your account’s.

Never the number: what is stored.