Skip to navigation

Proof of address check

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, with type=proof_of_address. JPEG, PNG, WebP and PDF are accepted, up to 25 MB. Your secret key works here too.

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"
{ "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

FieldRequiredDescription
documentMediaIdyesThe mediaId from the upload. It must be your own, uploaded as proof_of_address, not yet used by a verification and not expired.
namenoWhose address it should be, 2 to 200 characters. Checked against the names on the document.
countrynoThe country the address should be in, as an ISO 3166-1 alpha-2 code such as NG or GB.
documentTypenoWhat the document is: utility_bill, bank_statement, tenancy_agreement, government_document or other. Left out, the kind it is recognised as is used.
addressnoAn address to compare with the one printed, 3 to 300 characters.
requestIdyesYour 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.
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 and is not charged.

{
"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

OutcomeWhen
passReadable, 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.
reviewSomething a person should look at. reasons says what.
failNot a proof of address (not_proof_of_address), or addressed to somebody else (name_mismatch).
unavailableThe 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

ReasonOutcomeMeaning
not_proof_of_addressfailThe page carries no address for a person, for example an ID card or a screenshot.
name_mismatchfailThe document is addressed to somebody, and not to the name you sent.
no_addressreviewThe document was read and no address was found on it.
name_not_foundreviewYou 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.
stalereviewThe document is older than maxAgeDays.
undatedreviewNo issue or statement date was found, so it cannot be shown to be recent.
address_not_locatedreviewThe map looked for the printed address and could not place it.
address_differsreviewThe map placed the address you sent far from the printed one.
country_differsreviewThe address is in another country than the country you sent.
type_differsreviewThe document was recognised as another kind than the documentType you sent.
signs_of_editingreviewThe 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

FieldDescription
sampletrue in sandbox: the document was not read and every value is a sample.
documentMediaIdThe uploaded document checked.
documentStatusThe engine’s own verdict on the document, as a verification’s proofOfAddress.status: verified, name_mismatch, stale, inconclusive or no_address.
reasonsWhy the check is not a pass. Empty on a pass.
documentTypeThe kind it was judged as: the documentType you sent, else the kind recognised, else other.
documentKindWhat the document was recognised as: one of the kinds, or not_proof_of_address. null when it could not tell.
documentSubtypeThe document within that kind, for example electricity_bill, bank_statement or tenancy_agreement.
issuerThe company or body that issued it, as printed.
languageThe language it is written in (ISO 639-1).
documentDateThe issue or statement date, YYYY-MM-DD. null when undated.
documentAgeDaysHow old it was, in days, when checked.
maxAgeDaysThe most days old it may be: 90.
recentWhether it is within maxAgeDays. null when undated.
nameGivenThe name you sent.
nameOnDocumentWho the document is addressed to, as printed.
documentNamesThe same people one by one, each with the label printed beside them.
nameMatchWhether the name you sent is on the document. null when you sent none.
addressThe address read off the document, as printed.
addressGivenThe address you sent.
addressMatchYour 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.
locationWhere 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.
countryThe country the printed address is in (ISO 3166-1 alpha-2).
countryGivenThe country you sent.
countryMatchWhether they agree. null when either is unknown.
integritySigns of editing: status (clean, signs_of_editing, not_checked), signals (each code, strength, detail) and pageInspected. null on a sample.
qualityHow sharp the photo is: sharpness and poor. null for a PDF or a sample.
findingsOne 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).
checkedAtWhen 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.

nameThe sampleOutcome
any other name, or noneA recent bill addressed to that person.pass
Stale DocumentThe same bill, 140 days old.review (stale)
Name MismatchA bill addressed to Chidi Okafor.fail (name_mismatch)
Not Proof Of AddressA page that is not a proof of address.fail (not_proof_of_address)
Unreadable DocumentA 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

ErrorStatusMeaning
invalid_input400documentMediaId is missing, a field is not in the expected form, or the requestId is missing or malformed. message says which.
insufficient_credits402Your balance cannot cover the check. Nothing was run or charged.
checks_unavailable403These checks are not switched on for your organisation yet.
spot_checks_disabled403Spot checks are not enabled for your organisation.
request_id_reused409The requestId was used for a different check.
check_in_progress409A check with this requestId is still running.
file_not_found422The 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_unavailable503The check cannot run on this deployment right now. Nothing was charged.