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

# Retrieve an email check

GET https://sandbox-api.toden.co/api/v1/checks/email/{id}

**Error codes**

| `error` | Status | Meaning |
|---|---|---|
| `not_found` | 404 | No such check of this kind, or it was deleted. |
| `secret_key_required` | 403 | A publishable key was used. This endpoint accepts secret keys only. |
| `environment_mismatch` | 403 | The key belongs to an environment this deployment does not serve. |
| `ip_not_allowed` | 403 | The key has an IP allowlist and the calling address is not on it. |
| `organization_suspended` | 403 | The organisation is suspended. The response carries `reason` and `suspendedAt`. |
| `business_not_approved` | 403 | A live key was used before the business was approved for production. |

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

Reference: https://docs.toden.co/api-reference/verification/standalone-checks/get-email-check

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

### Path parameters

- `id` (string, required) — The check id, as returned by the run (`chk_…`).

## Response

### 200

The check.

- `id` (string, required) — The check id (`chk_…`).
- `kind` (enum, required) — Which check this is.
  - Allowed values: `email`
- `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` (EmailCheckInput, optional) — What was sent, minimised: never image bytes, only media ids.
- `externalUserId` (string, optional, nullable) — Your own reference for the check, as sent.
- `result` (EmailCheckResult, 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`.

## Errors

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

### 404 Not Found Error

The resource does not exist for this organisation and environment.

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

### EmailCheckInput

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

### EmailCheckResult

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

- `email` (string, optional) — The address checked, in lower case.
- `domain` (string, optional) — Its domain.
- `score` (integer, optional) — The risk score: 0 means nothing was found.
- `level` (enum, optional) — `low` below 30, `medium` from 30, `high` from 60.
  - Allowed values: `low`, `medium`, `high`
- `reasons` (list of enum, optional) — Why points were added, strongest first. `long_breach_history` is the one reason that lowers the score. New codes may be added.
  - Allowed values: `disposable_domain`, `disposable_mail_server`, `new_domain`, `shared_inbox`, `linked_to_declined`, `machine_made`, `role_address`, `privacy_relay`, `cross_org_fraud`, `no_breach_history`, `recent_password_breach`, `long_breach_history`
- `deliverable` (boolean, optional, nullable) — False when the domain definitively takes no mail; null when DNS did not answer in time.
- `mxFound` (boolean, optional, nullable) — A mail server (MX record) was found for the domain; null when DNS did not answer in time.
- `disposable` (boolean, optional) — A throwaway email service: on a list, or its mail runs on a throwaway service's servers.
- `freeProvider` (boolean, optional) — A free consumer mailbox such as Gmail. Not a risk on its own, so it adds nothing.
- `privacyRelay` (boolean, optional) — A privacy relay such as Hide My Email, which forwards to a real inbox.
- `role` (boolean, optional) — A team or function mailbox such as info@ or support@, not one person's.
- `machineMade` (boolean, optional) — The part before the @ looks generated by a machine rather than chosen by a person.
- `domainAgeDays` (integer, optional, nullable) — Days since the domain was registered. Null when unknown, and not looked up for free providers, relays or known throwaway domains.
- `breach` (EmailCheckResultBreach, optional, nullable) — The breach history, when Toden looked it up. Null when no lookup ran.
- `reuse` (EmailCheckResultReuse, optional) — Who else used this inbox. The inbox counts as shared only when two or more different people proved it, since one earlier person may be the person you are checking.
- `testData` (boolean, optional) — Some of the answer came from Toden's fixed test data (outside production only).
- `socialFootprint` (EmailCheckResultSocialFootprint, optional, nullable) — Where the address is registered, when `socialFootprint` was sent; null otherwise. From public sources only, including the breach history (each breached service is one the address was registered on). A footprint is a signal for a reviewer: many genuine people have none.

### EmailCheckResultBreach

The breach history, when Toden looked it up. Null when no lookup ran.

- `breached` (boolean, optional) — The address appears in at least one known breach.
- `count` (integer, optional) — How many known breaches include the address.
- `firstYear` (integer, optional, nullable) — The year of the oldest breach.
- `latestYear` (integer, optional, nullable) — The year of the newest breach.
- `passwordsExposed` (boolean, optional) — A password was exposed in at least one breach.
- `breaches` (list of EmailCheckResultBreachBreachesItems, optional) — Up to five breaches, newest first.

### EmailCheckResultReuse

Who else used this inbox. The inbox counts as shared only when two or more different people proved it, since one earlier person may be the person you are checking.

- `verifications` (integer, optional) — Your verifications, in this environment, that proved this inbox (at most 50 are read).
- `people` (integer, optional) — How many different people those were, by your reference or their ID number.
- `declined` (integer, optional) — How many of those verifications were declined.
- `otherOrganisationsFraud` (integer, optional) — Other organisations, in this environment, that declined this inbox for fraud. Never which.

### EmailCheckResultSocialFootprint

Where the address is registered, when `socialFootprint` was sent; null otherwise. From public sources only, including the breach history (each breached service is one the address was registered on). A footprint is a signal for a reviewer: many genuine people have none.

- `complete` (boolean, optional) — True when every source answered. False when one could not be asked or did not answer, so a platform missing from the list may still have the address.
- `platforms` (list of EmailCheckResultSocialFootprintPlatformsItems, optional) — One entry per platform the address is registered on: profiles first, then breached services.
- `names` (list of string, optional) — Names the address is published under, at most five.
- `photos` (list of EmailCheckResultSocialFootprintPhotosItems, optional) — Public profile photos published for the address.
- `testData` (boolean, optional) — Every answer is Toden's fixed test data (outside production only).
- `checkedAt` (datetime, optional) — When the sources were asked.

### EmailCheckResultBreachBreachesItems

- `name` (string, optional) — The breached service.
- `year` (integer, optional, nullable) — The year it happened.
- `dataTypes` (list of string, optional) — What was exposed, e.g. "Email addresses".
- `passwords` (boolean, optional) — Passwords were among the exposed data.

### EmailCheckResultSocialFootprintPlatformsItems

- `key` (string, optional) — A stable key for the platform, for example `x` or `adobe`.
- `label` (string, optional) — The platform's name.
- `kind` (enum, optional) — `profile`: an account with a public profile. `breach`: a service whose breach held the address.
  - Allowed values: `profile`, `breach`
- `url` (string, optional, nullable) — The public profile, when there is one.
- `username` (string, optional, nullable) — The username on the platform, when known.
- `since` (string, optional, nullable) — When the account or the breach dates from: `YYYY-MM-DD` or `YYYY`.

### EmailCheckResultSocialFootprintPhotosItems

- `url` (string, optional) — The photo's https address.

## Examples

**Response**

```json
{
  "id": "string",
  "kind": "email",
  "outcome": "pass",
  "subject": "string",
  "channel": "api",
  "createdAt": "2024-01-15T09:30:00Z",
  "input": {},
  "externalUserId": "string",
  "result": {
    "email": "string",
    "domain": "string",
    "score": 1,
    "level": "low",
    "reasons": [
      "disposable_domain"
    ],
    "deliverable": true,
    "mxFound": true,
    "disposable": true,
    "freeProvider": true,
    "privacyRelay": true,
    "role": true,
    "machineMade": true,
    "domainAgeDays": 1,
    "breach": {
      "breached": true,
      "count": 1,
      "firstYear": 1,
      "latestYear": 1,
      "passwordsExposed": true,
      "breaches": [
        {
          "name": "string",
          "year": 1,
          "dataTypes": [
            "string"
          ],
          "passwords": true
        }
      ]
    },
    "reuse": {
      "verifications": 1,
      "people": 1,
      "declined": 1,
      "otherOrganisationsFraud": 1
    },
    "testData": true,
    "socialFootprint": {
      "complete": true,
      "platforms": [
        {
          "key": "string",
          "label": "string",
          "kind": "profile",
          "url": "string",
          "username": "string",
          "since": "string"
        }
      ],
      "names": [
        "string"
      ],
      "photos": [
        {
          "url": "string"
        }
      ],
      "testData": true,
      "checkedAt": "2024-01-15T09:30:00Z"
    }
  },
  "failureCode": "string",
  "charged": "string",
  "entityId": "string",
  "completedAt": "2024-01-15T09:30:00Z",
  "replayed": true
}
```

**SDK Code**

```python
import requests

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

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

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

print(response.json())
```

```javascript
const url = 'https://sandbox-api.toden.co/api/v1/checks/email/id';
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/email/id"

	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/email/id")

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/email/id")
  .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/email/id', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://sandbox-api.toden.co/api/v1/checks/email/id");
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/email/id")! 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()
```