> 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.

# Proof of address check

> POST /checks/address: read a proof of address document on its own and say whether it holds up, with no verification.

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

Check a proof of address document (a utility bill, a bank statement, a tenancy agreement, a letter from a government body) without running a verification. The document is read by the same engine a verification's proof of address uses, and the answer comes back in the same response: what the document is, who issued it, how old it is, whose name and address it carries, and where that address is on the map. It is the same check Spot Checks runs from the dashboard (**Spot Checks → Individual → Address**), and every check is kept in the same history (checks run here are labelled "API").

**Authentication:** `Authorization: Bearer sk_…` (**secret keys only**). Results carry personal data, so this never belongs in client-side code.

## What is checked

* **What the document is.** A utility bill, bank statement, tenancy agreement, government document or other document carrying a person's address, and which one within that kind (an electricity bill, a credit card statement). A page that carries no address for a person, such as an ID card or a screenshot of an app, is not a proof of address.
* **How old it is.** The issue or statement date, against a window of 90 days. A bill that prints only the period it covers is dated by that period's last day.
* **Whose it is.** The names it is addressed to. When you send `name`, the check says whether that person is one of them.
* **The address.** The address printed for that person, placed on the map. When you send `address`, the check compares it with the one printed.
* **The country.** The country the address is in. When you send `country`, the check says whether they agree.
* **Signs of editing.** The file is inspected for the marks an image or PDF editor leaves, and the page for text that looks changed.

## 1. Upload the document

Upload the document with [`POST /api/v1/upload`](/user-verification/server-api/upload-media), with `type=proof_of_address`. JPEG, PNG, WebP and PDF are accepted, up to 25 MB. Your secret key works here too.

```bash
curl -X POST https://api.toden.co/api/v1/upload \
  -H "Authorization: Bearer sk_test_…" \
  -F "type=proof_of_address" \
  -F "file=@electricity-bill.pdf;type=application/pdf"
```

```json
{ "mediaId": "med_3f9a1c2b4d5e6f708192a3b4c5d6e7f8" }
```

An upload is kept for 30 minutes. Run the check within that time. Once the check is answered, the document is kept with it, so your team can see it on the result in the dashboard: in production as long as your media retention allows, in sandbox for 3 days.

## 2. Run the check

| Field             | Required | Description                                                                                                                                                    |
| ----------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `documentMediaId` | yes      | The `mediaId` from the upload. It must be your own, uploaded as `proof_of_address`, not yet used by a verification and not expired.                            |
| `name`            | no       | Whose address it should be, 2 to 200 characters. Checked against the names on the document.                                                                    |
| `country`         | no       | The country the address should be in, as an ISO 3166-1 alpha-2 code such as `NG` or `GB`.                                                                      |
| `documentType`    | no       | What the document is: `utility_bill`, `bank_statement`, `tenancy_agreement`, `government_document` or `other`. Left out, the kind it is recognised as is used. |
| `address`         | no       | An address to compare with the one printed, 3 to 300 characters.                                                                                               |
| `requestId`       | yes      | Your idempotency key, 8 to 120 characters. A retry with the same value returns the same check with `replayed: true`, and is neither run nor charged again.     |

```bash
curl -X POST https://api.toden.co/api/v1/checks/address \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "documentMediaId": "med_3f9a1c2b4d5e6f708192a3b4c5d6e7f8",
    "name": "Amina Bello",
    "country": "NG",
    "requestId": "poa-check-7f3c9a21"
  }'
```

In sandbox the document is not read, so this answers with a [sample](#testing) and is not charged.

```json
{
  "id": "chk_8b2e4d6f0a1c3e5a7c9e1b3d5f7a9c20",
  "kind": "address",
  "outcome": "pass",
  "subject": "Amina Bello",
  "input": { "documentMediaId": "med_3f9a1c2b4d5e6f708192a3b4c5d6e7f8", "name": "Amina Bello", "country": "NG" },
  "result": {
    "sample": true,
    "documentMediaId": "med_3f9a1c2b4d5e6f708192a3b4c5d6e7f8",
    "documentStatus": "verified",
    "reasons": [],
    "documentType": "utility_bill",
    "documentKind": "utility_bill",
    "documentSubtype": "electricity_bill",
    "issuer": "Ikeja Electric",
    "language": "en",
    "documentDate": "2026-11-08",
    "documentAgeDays": 12,
    "maxAgeDays": 90,
    "recent": true,
    "nameGiven": "Amina Bello",
    "nameOnDocument": "Amina Bello",
    "documentNames": [{ "name": "Amina Bello", "label": "Customer Name" }],
    "nameMatch": true,
    "address": "12 Adeola Odeku Street, Victoria Island, Lagos",
    "addressGiven": null,
    "addressMatch": null,
    "location": {
      "status": "found",
      "lat": 6.43,
      "lng": 3.421,
      "formattedAddress": "12 Adeola Odeku St, Victoria Island, Lagos 106104, Lagos, Nigeria",
      "precision": "exact",
      "partialMatch": false,
      "placeId": null,
      "checkedAt": "2026-11-20T10:14:04.000Z"
    },
    "country": "NG",
    "countryGiven": "NG",
    "countryMatch": true,
    "integrity": null,
    "quality": null,
    "findings": {
      "attemptsExceeded": null,
      "dataMismatch": false,
      "poorQuality": false,
      "tampered": null,
      "unsupportedType": false,
      "unsupportedLanguage": false,
      "issuerMissing": false,
      "dateMissing": false,
      "addressMissing": false
    },
    "checkedAt": "2026-11-20T10:14:04.000Z"
  },
  "failureCode": null,
  "charged": null,
  "entityId": null,
  "channel": "api",
  "createdAt": "2026-11-20T10:14:03.000Z",
  "completedAt": "2026-11-20T10:14:04.000Z",
  "replayed": false
}
```

A new check answers `201`; a retry with the same `requestId` answers `200` with the check already run.

## Outcomes

| Outcome       | When                                                                                                                                                                                                        |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pass`        | Readable, a proof of address, 90 days old or less, addressed to the `name` you sent (when you sent one), with an address the map could place, and nothing in `reasons`.                                     |
| `review`      | Something a person should look at. `reasons` says what.                                                                                                                                                     |
| `fail`        | Not a proof of address (`not_proof_of_address`), or addressed to somebody else (`name_mismatch`).                                                                                                           |
| `unavailable` | The check could not be completed. `failureCode` is `unreadable` when the document could not be read. It was not charged and is never a pass; upload a clearer copy and run it again with a new `requestId`. |

### Reasons

| Reason                 | Outcome  | Meaning                                                                                                                                            |
| ---------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `not_proof_of_address` | `fail`   | The page carries no address for a person, for example an ID card or a screenshot.                                                                  |
| `name_mismatch`        | `fail`   | The document is addressed to somebody, and not to the `name` you sent.                                                                             |
| `no_address`           | `review` | The document was read and no address was found on it.                                                                                              |
| `name_not_found`       | `review` | You sent a `name` and the document names nobody it could be compared with. In some markets a bill names the meter or the landlord, not the tenant. |
| `stale`                | `review` | The document is older than `maxAgeDays`.                                                                                                           |
| `undated`              | `review` | No issue or statement date was found, so it cannot be shown to be recent.                                                                          |
| `address_not_located`  | `review` | The map looked for the printed address and could not place it.                                                                                     |
| `address_differs`      | `review` | The map placed the `address` you sent far from the printed one.                                                                                    |
| `country_differs`      | `review` | The address is in another country than the `country` you sent.                                                                                     |
| `type_differs`         | `review` | The document was recognised as another kind than the `documentType` you sent.                                                                      |
| `signs_of_editing`     | `review` | The file or the page shows a strong sign of editing. This is evidence for a person to weigh, never proof of forgery.                               |

How sharp a photo is (`quality`) is recorded and never decides the outcome. A map nobody could ask (`location.status` `not_checked`) says nothing about the address and is never a reason. New reasons may be added.

## The result

| Field             | Description                                                                                                                                                                                                                                                                 |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `sample`          | `true` in sandbox: the document was not read and every value is a sample.                                                                                                                                                                                                   |
| `documentMediaId` | The uploaded document checked.                                                                                                                                                                                                                                              |
| `documentStatus`  | The engine's own verdict on the document, as a verification's `proofOfAddress.status`: `verified`, `name_mismatch`, `stale`, `inconclusive` or `no_address`.                                                                                                                |
| `reasons`         | Why the check is not a pass. Empty on a pass.                                                                                                                                                                                                                               |
| `documentType`    | The kind it was judged as: the `documentType` you sent, else the kind recognised, else `other`.                                                                                                                                                                             |
| `documentKind`    | What the document was recognised as: one of the kinds, or `not_proof_of_address`. `null` when it could not tell.                                                                                                                                                            |
| `documentSubtype` | The document within that kind, for example `electricity_bill`, `bank_statement` or `tenancy_agreement`.                                                                                                                                                                     |
| `issuer`          | The company or body that issued it, as printed.                                                                                                                                                                                                                             |
| `language`        | The language it is written in (ISO 639-1).                                                                                                                                                                                                                                  |
| `documentDate`    | The issue or statement date, `YYYY-MM-DD`. `null` when undated.                                                                                                                                                                                                             |
| `documentAgeDays` | How old it was, in days, when checked.                                                                                                                                                                                                                                      |
| `maxAgeDays`      | The most days old it may be: 90.                                                                                                                                                                                                                                            |
| `recent`          | Whether it is within `maxAgeDays`. `null` when undated.                                                                                                                                                                                                                     |
| `nameGiven`       | The `name` you sent.                                                                                                                                                                                                                                                        |
| `nameOnDocument`  | Who the document is addressed to, as printed.                                                                                                                                                                                                                               |
| `documentNames`   | The same people one by one, each with the `label` printed beside them.                                                                                                                                                                                                      |
| `nameMatch`       | Whether the `name` you sent is on the document. `null` when you sent none.                                                                                                                                                                                                  |
| `address`         | The address read off the document, as printed.                                                                                                                                                                                                                              |
| `addressGiven`    | The `address` you sent.                                                                                                                                                                                                                                                     |
| `addressMatch`    | Your `address` against the printed one: `match`, `no_match` (only when the map placed them far apart) or `unknown` (the evidence cannot settle it). `null` when you sent none.                                                                                              |
| `location`        | Where the printed address is on the map: `status` (`found`, `not_found`, `not_checked`), `lat`, `lng`, `formattedAddress`, `precision` (`exact`, `street`, `area`, `approximate`), `partialMatch`, `placeId`, `checkedAt`. `null` when no address was read.                 |
| `country`         | The country the printed address is in (ISO 3166-1 alpha-2).                                                                                                                                                                                                                 |
| `countryGiven`    | The `country` you sent.                                                                                                                                                                                                                                                     |
| `countryMatch`    | Whether they agree. `null` when either is unknown.                                                                                                                                                                                                                          |
| `integrity`       | Signs of editing: `status` (`clean`, `signs_of_editing`, `not_checked`), `signals` (each `code`, `strength`, `detail`) and `pageInspected`. `null` on a sample.                                                                                                             |
| `quality`         | How sharp the photo is: `sharpness` and `poor`. `null` for a PDF or a sample.                                                                                                                                                                                               |
| `findings`        | One `true`, `false` or `null` per proof of address rule, as a verification reports them: `dataMismatch`, `poorQuality`, `tampered`, `unsupportedType`, `unsupportedLanguage`, `issuerMissing`, `dateMissing`, `addressMissing` and `attemptsExceeded` (always `null` here). |
| `checkedAt`       | When the document was judged.                                                                                                                                                                                                                                               |

New fields may be added to `result`; existing ones are never renamed.

## History

`GET /api/v1/checks/address` lists your address checks in this environment, newest first, with `outcome`, `page` and `pageSize` (at most 100) as filters. `GET /api/v1/checks/address/:id` returns one check. `DELETE /api/v1/checks/address/:id` removes it from your history; the delete is soft and nothing is refunded.

## Billing

Each check is charged at your Verifications proof of address price, in production only. A check that could not be completed (`unavailable`), including a document that could not be read, is not charged, and a retry with the same `requestId` is never charged again. Sandbox and development checks are free.

## Testing

In sandbox the uploaded document is never read: a sample electricity bill from Ikeja Electric, dated 12 days ago, for 12 Adeola Odeku Street, Victoria Island, Lagos, Nigeria, is judged in its place, and `result.sample` is `true`. Upload any image or PDF as `proof_of_address` to get a `documentMediaId`. The `name` you send picks the outcome; any other name is the name on the sample, and no name is fine too.

| `name`                  | The sample                              | Outcome                         |
| ----------------------- | --------------------------------------- | ------------------------------- |
| any other name, or none | A recent bill addressed to that person. | `pass`                          |
| `Stale Document`        | The same bill, 140 days old.            | `review` (`stale`)              |
| `Name Mismatch`         | A bill addressed to Chidi Okafor.       | `fail` (`name_mismatch`)        |
| `Not Proof Of Address`  | A page that is not a proof of address.  | `fail` (`not_proof_of_address`) |
| `Unreadable Document`   | A document that cannot be read.         | `unavailable` (`unreadable`)    |

The test names are matched whatever their case. The `country`, `documentType` and `address` you send are judged against the sample as they would be against a real document: `"country": "GH"` gives `country_differs`, and `"documentType": "bank_statement"` gives `type_differs`.

## Errors

| Error                  | Status | Meaning                                                                                                                                      |
| ---------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `invalid_input`        | 400    | `documentMediaId` is missing, a field is not in the expected form, or the `requestId` is missing or malformed. `message` says which.         |
| `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.                                                                                              |
| `file_not_found`       | 422    | The upload was not found, is not yours, was not uploaded as `proof_of_address`, was used by a verification, or has expired. Upload it again. |
| `check_unavailable`    | 503    | The check cannot run on this deployment right now. Nothing was charged.                                                                      |