> Toden documentation. For the full index fetch /llms.txt. Every page is available as Markdown by appending .md to its URL. Every endpoint is under /api/v1. Identity verification and Risk Intelligence are separate contracts there with different error shapes; /api/kyc and /api/identity are older prefixes that still answer the same. Never invent an endpoint, field or enum value: read the API reference page for the operation first.

# Phone check

> POST /checks/phone: score a phone number for risk with no code sent, server to server.

```
POST   /api/v1/checks/phone
GET    /api/v1/checks/phone
GET    /api/v1/checks/phone/:id
DELETE /api/v1/checks/phone/:id
```

Check a phone number on its own, with no verification and no code sent to it. The check tells you whether the number is real, which country it belongs to, what kind of line it is, and whether other people in your organisation already used it, then scores it from 0 to 100. It is the server-to-server counterpart of the dashboard's **Spot Checks → Individual → Check phone** task, and both share one history (API checks are labelled "API").

**Authentication:** `Authorization: Bearer sk_…` (**secret keys only**). The answer is about a person's number, so this never belongs in client-side code.

To prove that a person holds a number, send them a code with [contact verification](/user-verification/server-api/contact-verification) instead. This check scores the number; it does not reach it.

## Run a check

| Field       | Required | Description                                                                                                                                                              |
| ----------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `phone`     | yes      | The number with its country code (`+234 803 123 4567`), or a local number with `country` (`0803 123 4567`). Spaces, dashes and brackets are fine. At most 40 characters. |
| `country`   | no       | The two-letter ISO 3166-1 code of the country a local number is dialled in, e.g. `NG`. A number sent with its country code is read by its code, whatever you send here.  |
| `requestId` | yes      | Your idempotency key, 8 to 120 characters. A retry with the same value returns the same check with `replayed: true`, without running or charging again.                  |

```bash
curl -X POST https://api.toden.co/api/v1/checks/phone \
  -H "Authorization: Bearer sk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "phone": "0803 123 4567", "country": "NG", "requestId": "phone-check-7f3a9c21" }'
```

The answer comes back in the same response (`201`, or `200` for a retry):

```json
{
  "id": "chk_4b1e9d2c7a0f4e8b9c3d2a1f0e9b8c7d",
  "kind": "phone",
  "outcome": "pass",
  "subject": "+2348031234567",
  "input": { "phone": "+2348031234567", "country": "NG" },
  "result": {
    "e164": "+2348031234567",
    "international": "+234 803 123 4567",
    "valid": true,
    "possible": true,
    "country": "NG",
    "countryName": "Nigeria",
    "callingCode": "234",
    "countryMismatch": false,
    "lineType": "mobile",
    "virtual": false,
    "score": 0,
    "level": "low",
    "reasons": [],
    "reuse": { "verifications": 0, "declined": 0, "customers": 0, "people": 0 }
  },
  "failureCode": null,
  "charged": "0.0100",
  "entityId": null,
  "channel": "api",
  "createdAt": "2026-11-20T10:15:02.118Z",
  "completedAt": "2026-11-20T10:15:02.164Z",
  "replayed": false
}
```

The number is kept in E.164 form only. List your checks with `GET /api/v1/checks/phone` (newest first, `page`, `pageSize` and `outcome` filters), read one with `GET /api/v1/checks/phone/:id`, and remove one from your history with `DELETE /api/v1/checks/phone/:id`.

## The result

| Field                    | Description                                                                                                                                                                                                                                                                           |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `e164`                   | The number in E.164 form.                                                                                                                                                                                                                                                             |
| `international`          | The number written the international way, for people to read.                                                                                                                                                                                                                         |
| `valid`                  | `true` when the number is in a range a carrier has been given. A number that is not valid fails the check.                                                                                                                                                                            |
| `possible`               | `true` when the number has the right length for its country. A number can be possible and still not valid: usually a typo, or a range kept for films and tests.                                                                                                                       |
| `country`, `countryName` | The country the number belongs to, from its dial code: the ISO-2 code and its name in English. `null` when the dial code is shared by several countries and the range is not known.                                                                                                   |
| `callingCode`            | The country calling code, digits only.                                                                                                                                                                                                                                                |
| `countryMismatch`        | `true` when you sent `country` and the number belongs to another country. `null` when you sent none. Shown, not scored: many people carry a number from another country.                                                                                                              |
| `lineType`               | `mobile`, `fixed_line`, `fixed_line_or_mobile` (where a country does not tell the two apart, such as the US), `voip`, `toll_free`, `premium_rate`, `shared_cost`, `personal_number`, `pager`, `uan` or `voicemail`. `null` when the range is not classified. New values may be added. |
| `virtual`                | `true` for a VoIP number, `false` for any other known line type, `null` when the line type is unknown.                                                                                                                                                                                |
| `score`                  | The phone risk score: 0 is nothing found, 100 the most risk.                                                                                                                                                                                                                          |
| `level`                  | `low` below 30, `medium` from 30, `high` from 60.                                                                                                                                                                                                                                     |
| `reasons`                | Why points were added, strongest first (below).                                                                                                                                                                                                                                       |
| `reuse.verifications`    | Your verifications that proved this number with a code.                                                                                                                                                                                                                               |
| `reuse.declined`         | How many of those were declined.                                                                                                                                                                                                                                                      |
| `reuse.customers`        | Your customers whose contact details hold this number.                                                                                                                                                                                                                                |
| `reuse.people`           | At least this many different people used the number. Verifications for the same ID number count as one person.                                                                                                                                                                        |

`reuse` reads your organisation's records in the same environment only, never another organisation's. Fields are only ever added to `result`, never renamed. The carrier is not reported: it needs a paid lookup we do not make, and a field we cannot fill honestly is left out.

### Reasons

| Code                 | Points | Meaning                                                                                               |
| -------------------- | ------ | ----------------------------------------------------------------------------------------------------- |
| `invalid_number`     | 100    | The number is not in any range a carrier has been given.                                              |
| `premium_rate_line`  | 70     | A premium rate number: calls cost the caller, so it is never a person's own line.                     |
| `voip_line`          | 40     | A VoIP number, bought online in minutes. Many honest people use one, so on its own it goes to review. |
| `personal_number`    | 40     | A "follow me" number (such as UK `070`) that forwards anywhere, so who answers is hidden.             |
| `service_line`       | 30     | A toll-free, shared-cost, pager or voicemail number: a business or a service, not a person.           |
| `shared_number`      | 25     | Two or more different people in your organisation used this number.                                   |
| `linked_to_declined` | 15     | A verification that proved this number was declined.                                                  |

The score is the sum, capped at 100. A fact we could not establish adds nothing: a gap in our data never counts against a person. A fixed line, a number from another country, and one earlier verification with the number (most often the same person again) are not scored.

## Outcomes

| `outcome`     | When                                                                                                                                    |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `pass`        | Low risk: a score below 30.                                                                                                             |
| `review`      | Medium risk: a score from 30 to 59. Someone should look at it.                                                                          |
| `fail`        | High risk: a score of 60 or more, or a number that is not valid.                                                                        |
| `unavailable` | The check could not be completed (`failureCode` says why). It was not charged and is never a pass. Run it again with a new `requestId`. |

A number that cannot be read at all (no digits, or a local number with no `country`) is refused with `400 invalid_input` and a message saying what to change. Nothing is run or charged.

## Billing

Each check is charged at your phone risk price, in production only. A check that could not be completed (`unavailable`) is refunded at once, and a retry with the same `requestId` is never charged again. If your balance cannot cover the check, it is refused with `402 insufficient_credits` and nothing is run. The check never calls a paid provider.

## Test numbers

Outside production the check runs for real and is free. The line type comes from the published numbering plans, so these numbers give the same answer in every environment. `reuse` depends on your own records in that environment.

| Number              | Line type                 | Outcome                      |
| ------------------- | ------------------------- | ---------------------------- |
| `+234 803 123 4567` | `mobile` (Nigeria)        | `pass`                       |
| `+44 7400 123456`   | `mobile` (United Kingdom) | `pass`                       |
| `+44 20 7123 4567`  | `fixed_line`              | `pass`                       |
| `+44 800 123 4567`  | `toll_free`               | `review` (`service_line`)    |
| `+44 56 1234 5678`  | `voip`                    | `review` (`voip_line`)       |
| `+44 70 1234 5678`  | `personal_number`         | `review` (`personal_number`) |
| `+44 901 234 5678`  | `premium_rate`            | `fail` (`premium_rate_line`) |
| `+44 7700 900123`   | none: possible, not valid | `fail` (`invalid_number`)    |

## Errors

| Code                   | Status | Meaning                                                                                                |
| ---------------------- | ------ | ------------------------------------------------------------------------------------------------------ |
| `invalid_input`        | 400    | `phone` is missing or cannot be read, `country` is not a two-letter code, or `requestId` is malformed. |
| `insufficient_credits` | 402    | Your balance cannot cover the check. Nothing was run or charged.                                       |
| `checks_unavailable`   | 403    | These checks are not switched on for your organisation yet.                                            |
| `spot_checks_disabled` | 403    | Spot checks are not enabled for your organisation.                                                     |
| `request_id_reused`    | 409    | The `requestId` was used for a different check.                                                        |
| `check_in_progress`    | 409    | A check with this `requestId` is still running.                                                        |