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

Create Over‑18 Session

Create Session

Status: 200 OK

Response JSON

{"id":"95837ef5-868b-4c41-b235-3c6be2dd055d","status":"PENDING","expires_at":"2026-07-26T16:04:48Z"}

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_1785080988",
  "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: Sun, 26 Jul 2026 15:49:48 GMT
Connection: keep-alive
Server: cloudflare
X-Request-ID: 4953726720f153a153f3f1c9c55fea01, 4953726720f153a153f3f1c9c55fea01
cf-cache-status: DYNAMIC
Set-Cookie: __cf_bm=YiryHTY7VfRSsTWOMJXeCt6SiBYf4Kcyd2zrKaqeAQQ-1785080988.8193915-1.0.1.1-1tWPIM3Xm1_iBI7Vkky75fSs_1i3NSxAirfQCNaKUgj9NhVOoWT8jYuAJF3kJ20VAVwaJ3YH8kEzh7U55GaewoYoKiceJuuwt7J.SbNrEFESMETIHvd0QcN7HQMfPvwO; HttpOnly; Secure; Path=/; Domain=yoti.com; Expires=Sun, 26 Jul 2026 16:19:48 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
CF-RAY: a2148e7418171229-AMS
Content-Type: application/json
Content-Length: 100
      

Config (from appsettings.json)