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

# List address checks

GET https://sandbox-api.toden.co/api/v1/checks/address

Your address checks in this environment, newest first.

Requires a secret (`sk_`) key. A publishable key receives `403 secret_key_required`.

Reference: https://docs.toden.co/api-reference/verification/standalone-checks/list-address-checks

## Authentication

- `Authorization` header (bearer token, required) — 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.

## Servers

- `https://sandbox-api.toden.co` (Sandbox, default)
- `https://api.toden.co` (Production)

## Request

### Query parameters

- `outcome` (enum, optional) — Only checks with this outcome.
  - Allowed values: `pass`, `review`, `fail`, `unavailable`
- `page` (integer, optional, default: 1) — The page to return.
- `pageSize` (integer, optional, default: 25) — Checks per page.

## Response

### 200

One page of checks.

- `data` (list of AddressCheck, required)
- `total` (integer, required) — How many records match the filters across every page.
- `page` (integer, required) — The page that was returned.
- `pageSize` (integer, required) — The page size that was applied.

## Errors

### 400 Bad Request Error

The request body, query or path was invalid.

- `error` (string, required) — A stable machine-readable code such as `invalid_input`. Authentication failures (401) carry a short sentence here instead of a code.
- `message` (string, optional) — A human-readable explanation, safe to log. The wording may change.

### 401 Unauthorized Error

The Authorization header is missing, or the API key is unknown or revoked.

- `error` (string, required) — A stable machine-readable code such as `invalid_input`. Authentication failures (401) carry a short sentence here instead of a code.
- `message` (string, optional) — A human-readable explanation, safe to log. The wording may change.

### 403 Forbidden Error

The key may not call this endpoint, or the organisation may not use this feature.

- `error` (string, required) — A stable machine-readable code such as `invalid_input`. Authentication failures (401) carry a short sentence here instead of a code.
- `message` (string, optional) — A human-readable explanation, safe to log. The wording may change.

## Types

### AddressCheck

- `id` (string, required) — The check id (`chk_…`).
- `kind` (enum, required) — Which check this is.
  - Allowed values: `address`
- `outcome` (enum, required) — `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.
  - Allowed values: `pass`, `review`, `fail`, `unavailable`
- `subject` (string, required) — What was checked, as your history lists it.
- `channel` (enum, required) — Whether the check was run through the API or from the dashboard.
  - Allowed values: `api`, `dashboard`
- `createdAt` (datetime, required) — When the check was run.
- `input` (AddressCheckInput, optional) — What was sent, minimised: never image bytes, only media ids.
- `externalUserId` (string, optional, nullable) — Your own reference for the check, as sent.
- `result` (AddressCheckResult, optional, nullable) — What was found. Null when the check could not be completed.
- `failureCode` (string, optional, nullable) — Why the check could not be completed, when `outcome` is `unavailable`.
- `charged` (string, optional, nullable) — What the check cost in USD, as a decimal string. Null when nothing was charged.
- `entityId` (string, optional, nullable) — The customer record this check was saved to.
- `completedAt` (datetime, optional, nullable) — When it finished.
- `replayed` (boolean, optional) — On a run only: true when this is a check already run under the same `requestId`.

### AddressCheckInput

What was sent, minimised: never image bytes, only media ids.

### AddressCheckResult

What was found. Null when the check could not be completed.

- `sample` (boolean, optional) — True in sandbox: the document was not read and every value is a sample.
- `documentMediaId` (string, optional) — The uploaded document checked.
- `documentStatus` (enum, optional) — The proof of address engine's own verdict on the document, as a verification's `proofOfAddress.status`.
  - Allowed values: `verified`, `name_mismatch`, `stale`, `inconclusive`, `no_address`
- `reasons` (list of enum, optional) — Why the check is not a pass; empty on a pass. By default `not_proof_of_address` and `name_mismatch` fail it and the rest send it to review; `rules` can change that.
  - Allowed values: `not_proof_of_address`, `name_mismatch`, `no_address`, `name_not_found`, `stale`, `undated`, `address_not_located`, `address_differs`, `country_differs`, `type_differs`, `signs_of_editing`, `issuer_not_identified`, `unsupported_language`
- `notes` (list of enum, optional) — What was found but approved by the rules: shown as notes, never a reason the check did not pass. By default an issuer the reader could not name.
  - Allowed values: `not_proof_of_address`, `name_mismatch`, `no_address`, `name_not_found`, `stale`, `undated`, `address_not_located`, `address_differs`, `country_differs`, `type_differs`, `signs_of_editing`, `issuer_not_identified`, `unsupported_language`
- `documentType` (enum, optional) — The kind the document was judged as: the `documentType` sent, else the kind recognised, else `other`.
  - Allowed values: `utility_bill`, `bank_statement`, `tenancy_agreement`, `government_document`, `other`
- `documentKind` (string, optional, nullable) — What the document was recognised as: a kind above, or `not_proof_of_address`.
- `documentSubtype` (string, optional, nullable) — The document within that kind, for example `electricity_bill` or `bank_statement`.
- `issuer` (string, optional, nullable) — The company or body that issued it, as printed.
- `language` (string, optional, nullable) — The language it is written in (ISO 639-1).
- `documentDate` (date, optional, nullable) — The issue or statement date (YYYY-MM-DD).
- `documentAgeDays` (integer, optional, nullable) — How old the document was, in days, when checked. Null when undated.
- `maxAgeDays` (integer, optional) — The most days old the document may be: 90, or `rules.maxAgeMonths` times 30.
- `recent` (boolean, optional, nullable) — Whether it is within `maxAgeDays`. Null when undated.
- `nameGiven` (string, optional, nullable) — The `name` sent.
- `nameOnDocument` (string, optional, nullable) — Who the document is addressed to, as printed.
- `documentNames` (list of AddressCheckResultDocumentNamesItems, optional, nullable) — The same people one by one, with the label printed beside each.
- `nameMatch` (boolean, optional, nullable) — Whether the `name` sent is on the document. Null when no name was sent.
- `address` (string, optional, nullable) — The address read off the document, as printed.
- `addressGiven` (string, optional, nullable) — The `address` sent.
- `addressMatch` (enum, optional) — The `address` sent against the document's. `no_match` only when the map placed both far apart; `unknown` when it cannot be settled. Null when no address was sent.
  - Allowed values: `match`, `no_match`, `unknown`
- `location` (AddressCheckResultLocation, optional, nullable) — Where the address read off the document is on the map. Null when no address was read.
- `country` (string, optional, nullable) — The country the document's address is in (ISO 3166-1 alpha-2).
- `countryGiven` (string, optional, nullable) — The `country` sent.
- `countryMatch` (boolean, optional, nullable) — Whether the address is in the `country` sent. Null when either is unknown.
- `integrity` (AddressCheckResultIntegrity, optional, nullable) — Signs the file or the page was edited. Null on a sample.
- `quality` (AddressCheckResultQuality, optional, nullable) — How sharp the photo is. Recorded, never decides. Null for a PDF or a sample.
- `findings` (AddressCheckResultFindings, optional) — One yes or no per proof of address rule, as a verification reports them. `true` is the finding, `false` looked and fine, `null` could not say.
- `checkedAt` (datetime, optional) — When the document was judged.
- `rules` (AddressCheckResultRules, optional) — The rules this check was judged by.

### AddressCheckResultDocumentNamesItems

- `name` (string, optional) — As printed.
- `label` (string, optional, nullable) — The words printed beside it, for example "Customer Name".

### AddressCheckResultLocation

Where the address read off the document is on the map. Null when no address was read.

- `status` (enum, optional) — `found`: placed. `not_found`: looked for and not placed. `not_checked`: nobody could be asked, which says nothing about the address.
  - Allowed values: `found`, `not_found`, `not_checked`
- `lat` (double, optional, nullable)
- `lng` (double, optional, nullable)
- `formattedAddress` (string, optional, nullable) — The map's own form of the address it found.
- `precision` (enum, optional) — How closely it was placed.
  - Allowed values: `exact`, `street`, `area`, `approximate`
- `partialMatch` (boolean, optional) — True when the map matched only part of the printed address.
- `placeId` (string, optional, nullable) — The map's id for the place.
- `checkedAt` (datetime, optional) — When it was placed.

### AddressCheckResultIntegrity

Signs the file or the page was edited. Null on a sample.

- `status` (enum, optional) — `signs_of_editing` sends the check to review.
  - Allowed values: `clean`, `signs_of_editing`, `not_checked`
- `signals` (list of AddressCheckResultIntegritySignalsItems, optional)
- `pageInspected` (boolean, optional) — Whether the page itself was looked at, beside the file.

### AddressCheckResultQuality

How sharp the photo is. Recorded, never decides. Null for a PDF or a sample.

- `sharpness` (integer, optional, nullable) — Higher is sharper.
- `poor` (boolean, optional)

### AddressCheckResultFindings

One yes or no per proof of address rule, as a verification reports them. `true` is the finding, `false` looked and fine, `null` could not say.

- `attemptsExceeded` (boolean, optional, nullable)
- `dataMismatch` (boolean, optional, nullable)
- `poorQuality` (boolean, optional, nullable)
- `tampered` (boolean, optional, nullable)
- `unsupportedType` (boolean, optional, nullable)
- `unsupportedLanguage` (boolean, optional, nullable)
- `issuerMissing` (boolean, optional, nullable)
- `dateMissing` (boolean, optional, nullable)
- `addressMissing` (boolean, optional, nullable)

### AddressCheckResultRules

The rules this check was judged by.

- `actions` (map from string to enum, optional) — Each finding's action.
  - Allowed values: `decline`, `review`, `approve`
- `settings` (AddressCheckResultRulesSettings, optional) — Each setting's value.
- `source` (map from string to enum, optional) — Where each finding's action and each setting came from.
  - Allowed values: `default`, `organisation`, `request`
- `triggered` (list of AddressCheckResultRulesTriggeredItems, optional) — The findings this check found, each with the action it took.

### AddressCheckResultIntegritySignalsItems

- `code` (enum, optional) — What was seen.
  - Allowed values: `edited_in_image_editor`, `edited_in_pdf_editor`, `changed_after_signing`, `visible_editing`, `saved_again`
- `strength` (enum, optional) — `strong` is enough on its own to put the document in front of a person.
  - Allowed values: `strong`, `weak`
- `detail` (string, optional, nullable) — The software named, or what was seen on the page.

### AddressCheckResultRulesSettings

Each setting's value.

### AddressCheckResultRulesTriggeredItems

- `finding` (string, optional) — The finding.
- `action` (enum, optional) — What it did.
  - Allowed values: `decline`, `review`, `approve`

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "string",
      "kind": "address",
      "outcome": "pass",
      "subject": "string",
      "channel": "api",
      "createdAt": "2024-01-15T09:30:00Z",
      "input": {},
      "externalUserId": "string",
      "result": {
        "sample": true,
        "documentMediaId": "string",
        "documentStatus": "verified",
        "reasons": [
          "not_proof_of_address"
        ],
        "notes": [
          "not_proof_of_address"
        ],
        "documentType": "utility_bill",
        "documentKind": "string",
        "documentSubtype": "string",
        "issuer": "string",
        "language": "string",
        "documentDate": "2023-01-15",
        "documentAgeDays": 1,
        "maxAgeDays": 1,
        "recent": true,
        "nameGiven": "string",
        "nameOnDocument": "string",
        "documentNames": [
          {
            "name": "string",
            "label": "string"
          }
        ],
        "nameMatch": true,
        "address": "string",
        "addressGiven": "string",
        "addressMatch": "match",
        "location": {
          "status": "found",
          "lat": 1.1,
          "lng": 1.1,
          "formattedAddress": "string",
          "precision": "exact",
          "partialMatch": true,
          "placeId": "string",
          "checkedAt": "2024-01-15T09:30:00Z"
        },
        "country": "string",
        "countryGiven": "string",
        "countryMatch": true,
        "integrity": {
          "status": "clean",
          "signals": [
            {
              "code": "edited_in_image_editor",
              "strength": "strong",
              "detail": "string"
            }
          ],
          "pageInspected": true
        },
        "quality": {
          "sharpness": 1,
          "poor": true
        },
        "findings": {
          "attemptsExceeded": true,
          "dataMismatch": true,
          "poorQuality": true,
          "tampered": true,
          "unsupportedType": true,
          "unsupportedLanguage": true,
          "issuerMissing": true,
          "dateMissing": true,
          "addressMissing": true
        },
        "checkedAt": "2024-01-15T09:30:00Z",
        "rules": {
          "actions": {},
          "settings": {},
          "source": {},
          "triggered": [
            {
              "finding": "string",
              "action": "decline"
            }
          ]
        }
      },
      "failureCode": "string",
      "charged": "string",
      "entityId": "string",
      "completedAt": "2024-01-15T09:30:00Z",
      "replayed": true
    }
  ],
  "total": 1,
  "page": 1,
  "pageSize": 1
}
```

**SDK Code**

```python
import requests

url = "https://sandbox-api.toden.co/api/v1/checks/address"

headers = {"Authorization": "Bearer <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://sandbox-api.toden.co/api/v1/checks/address';
const options = {method: 'GET', headers: {Authorization: 'Bearer <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://sandbox-api.toden.co/api/v1/checks/address"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://sandbox-api.toden.co/api/v1/checks/address")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://sandbox-api.toden.co/api/v1/checks/address")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://sandbox-api.toden.co/api/v1/checks/address', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://sandbox-api.toden.co/api/v1/checks/address");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://sandbox-api.toden.co/api/v1/checks/address")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```