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

# Retrieve a contact verification

GET https://sandbox-api.toden.co/api/kyc/contact/verifications/{id}

Returns a challenge at any point in its life. Use it to reconcile your own state after a dropped response.

**Error codes**

| `error` | Status | Meaning |
|---|---|---|
| `challenge_not_found` | 404 | No challenge with that id for this organisation and environment, or it was not created through this API. |
| `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/contact-verification/get-contact-verification

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

## Servers

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

## Request

### Path parameters

- `id` (string, required) — The contact verification id returned when the code was sent.

## Response

### 200

The contact verification.

- `contactVerification` (ContactVerification, required)

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

### ContactVerification

- `id` (string, required) — The contact verification id.
- `status` (enum, required) — `pending` until a code is accepted, `verified` once one is, and `expired` when the window closes without one.
  - Allowed values: `pending`, `verified`, `expired`
- `channel` (enum, required) — What is being verified.
  - Allowed values: `email`, `phone`
- `destination` (string, required) — The contact in its normalised form: a lowercased email address or an E.164 phone number.
- `attemptsUsed` (integer, required) — How many codes have been checked against this challenge so far.
- `expiresAt` (datetime, required) — When the code stops being accepted, five minutes after it was sent.
- `createdAt` (datetime, required) — When the code was sent.
- `deliveryChannel` (enum, optional) — What carried the code. `test` means nothing was sent, which is every challenge outside production.
  - Allowed values: `email`, `sms`, `whatsapp`, `test`
- `country` (string, optional, nullable) — The ISO 3166-1 alpha-2 country you sent, which the price was resolved against. Null when you sent none.
- `signals` (ContactVerificationSignals, optional, nullable) — What is known about the contact, worked out when the code was sent. An email carries the email fields and a phone carries the phone fields.
- `externalUserId` (string, optional, nullable) — Your own reference for the person, as you sent it.
- `chargedAmount` (string, optional, nullable) — What the completed check cost in USD, as a decimal string. Null until a check completes, and always null outside production.
- `verifiedAt` (datetime, optional, nullable) — When the code was accepted.

### ContactVerificationSignals

What is known about the contact, worked out when the code was sent. An email carries the email fields and a phone carries the phone fields.

- `domain` (string, optional) — Email: the mail domain.
- `disposable` (boolean, optional) — Email: the domain is a known throwaway mailbox service.
- `freeProvider` (boolean, optional) — Email: the domain is a consumer email service.
- `mxFound` (boolean, optional, nullable) — Email: the domain publishes mail servers. Null when the lookup could not answer.
- `e164` (string, optional, nullable) — Phone: the number in E.164 form.
- `country` (string, optional, nullable) — Phone: the ISO 3166-1 alpha-2 country the number belongs to.
- `callingCode` (string, optional, nullable) — Phone: the country calling code, digits only.
- `valid` (boolean, optional) — Phone: the number is a valid number for its country.
- `lineType` (string, optional, nullable) — Phone: the kind of line, for example `mobile`, `fixed_line` or `voip`. Null when it cannot be classified.
- `virtual` (boolean, optional, nullable) — Phone: true only for a known internet telephony range, false for any other known type, null when unknown.

## Examples

**Response**

```json
{
  "contactVerification": {
    "id": "cmt8s0a4p0003qw9k2m7f3cv1",
    "status": "verified",
    "channel": "phone",
    "destination": "+2348030000000",
    "attemptsUsed": 1,
    "expiresAt": "2026-09-12T10:05:00.000Z",
    "createdAt": "2026-09-12T10:00:00.000Z",
    "deliveryChannel": "test",
    "country": "NG",
    "signals": {
      "e164": "+2348030000000",
      "country": "NG",
      "callingCode": "234",
      "valid": true,
      "lineType": "mobile",
      "virtual": false
    },
    "externalUserId": "user_8f21",
    "chargedAmount": null,
    "verifiedAt": "2026-09-12T10:01:12.000Z"
  }
}
```

**SDK Code**

```python
import requests

url = "https://sandbox-api.toden.co/api/kyc/contact/verifications/id"

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

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

print(response.json())
```

```javascript
const url = 'https://sandbox-api.toden.co/api/kyc/contact/verifications/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/kyc/contact/verifications/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/kyc/contact/verifications/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/kyc/contact/verifications/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/kyc/contact/verifications/id', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://sandbox-api.toden.co/api/kyc/contact/verifications/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/kyc/contact/verifications/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()
```