Yoti Hosted Age Verification — Over 18 (ASP.NET Core 9)

Create Over‑18 Session

Create Session

Status: 200 OK

Response JSON

{"id":"0b04c964-f69d-4049-adc1-c4ee8eea4c56","status":"PENDING","expires_at":"2026-09-24T15:28:50Z"}

Open Yoti Hosted Flow

Testing Return flows

COMPLETED
FAILED
ABANDONED
EXPIRED
ONLY session_id

Diagnostics

General

  • MethodPOST
  • URLhttps://age.yoti.com/api/v1/sessions

Request Headers

Authorization: Bearer GiT5rA3uO_V6GjaoIsGUQW_KEW-KkR_4q8c9u940LXHoc6fvkXlmRATWLZA=
Yoti-SDK-Id: 032a7ca8-bc0a-4931-98f2-e7fbc9e5a191
Accept: application/json
Content-Type: application/json; charset=utf-8
      

Request Body

{
  "type": "OVER",
  "age": 18,
  "ttl": 900,
  "reference_id": "pintfinder_1790262830",
  "callback": { "auto": true, "url": "https://pintfinderyoti.nexpreview.co.uk/age/return" },
  "notification_url": "https://pintfinderyoti.nexpreview.co.uk/age/webhook",

  "age_estimation": { "allowed": false },

  "doc_scan": {
    "allowed": true,
    "retry_enabled": true
  },

  "digital_id": { "allowed": false },

  "synchronous_checks": true,
  "retry_enabled": true,
  "resume_enabled": true
}

Response

Status: 200

Response Headers

Date: Thu, 24 Sep 2026 15:13:50 GMT
Connection: keep-alive
Server: cloudflare
X-Request-ID: 81d81f756c889bcddecd6ab21fd2b448, 81d81f756c889bcddecd6ab21fd2b448
cf-cache-status: DYNAMIC
Set-Cookie: __cf_bm=uqo3d8ayI1jT3ougHktQeKsCL2n8cg7OeMH4Wb58lQA-1790262830.1688054-1.0.1.1-iqihOpF42rhXWDq7jBpGFl22M6coZEkQXE3IMCnwvgx6JBm4VmGnPmcGIcZtJleViqHuaxVhjwRqF_Go1Aoww.k0L36aIPTkATMdl4JmjSdvYLKAL3cU_frYHLV8acJ0; HttpOnly; Secure; Path=/; Domain=yoti.com; Expires=Thu, 24 Sep 2026 15:43:50 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
CF-RAY: a402bc408f294f25-AMS
Content-Type: application/json
Content-Length: 100
      

Config (from appsettings.json)