Check a phone number
Scores a phone number for risk with no code sent to it: whether it is a real number, which country it belongs to, what kind of line it is, and whether other people in your organisation already used it.
Send the number with its country code, or send a local number with country, the two-letter code of the country it is dialled in.
The outcome follows the score: low is pass, medium is review and high is fail. A number that is not valid always fails. A VoIP or “follow me” number goes to review on its own; a premium rate number fails.
The check runs on Toden’s own data and is never sent to a lookup provider. Outside production it runs for real and is not charged.
Charged per check at your price (production only); a check that could not be completed is not charged. Send a requestId: a retry with the same value returns the same check with replayed: true, without running or charging again.
Error codes
A missing or unknown key answers 401, where error is a short sentence rather than a code.
Requires a secret (sk_) key. A publishable key receives 403 secret_key_required.
Authentication
Send the API key as a Bearer token. Each operation states whether a publishable key is enough or a secret key is required. A scoped publishable key has Verification flow access, the fixed set flow.run, flow.config.read and verifications.status.read; a scoped secret key reaches what its scopes allow.
Request
The phone number, with its country code (+234 803 123 4567) or local with country (0803 123 4567). Spaces and punctuation are fine.
Optional. The ISO 3166-1 alpha-2 code of the country a local number is dialled in, e.g. NG.
Your own reference for the check (a customer or case id), kept with it and searchable in your history.
Your idempotency key, 8 to 120 characters: a retry with the same value returns the same check.
Response
A retry: the check already run under this requestId.
The check id (chk_…).
pass: nothing of concern. review: something a person should look at. fail: a clear problem. unavailable: the check could not be completed, was not charged, and is never a pass.
What was sent, minimised: never image bytes, only media ids.
Why the check could not be completed, when outcome is unavailable.
On a run only: true when this is a check already run under the same requestId.