Age API quickstart
Nexiel Age proves “over 18,” not who someone is. It is a dedicated API surface, pricing, and documentation product for age-restricted online services (video-sharing platforms, social apps, e-commerce, gaming), built on top of Nexiel Verify's existing EUDI wallet / OpenID4VP stack: specifically the age-verification DCQL check type that already exists in that stack today.
New to EUDI wallets? Read what an EU Digital Identity Wallet is, and how a session works before this page assumes you already know what a DCQL query or an SD-JWT VC presentation is.
What this is, and what this is not
This is not a separate identity-verification engine. Every request below hits the same Verify API service and the same POST /v1/verify/sessions route that Nexiel Verify's own docs describe, with the same storage and audit trail. The only thing that changes is the request body's checkType, which determines which DCQL claims get requested. If you have already integrated Nexiel Verify for AML identity checks, the same credentials and integration pattern work for Nexiel Age: only the checkType value differs.
Scope. This page covers the online age-verification check type. Age-restricted purchases at a till or kiosk use the restricted-purchase-alcohol-18, restricted-purchase-tobacco-18 and restricted-purchase-lottery-18 check types, described in in-store age verification. Government-backed age assurance beyond the EUDI wallet is on the roadmap. Authentication uses the same Nexiel Verify key: there is no separate Age-only key yet. See pricing for the Nexiel Age reference price.
Selective disclosure, made concrete
The age-verification DCQL template offers alternative ways to answer the same age-over-18 question, via DCQL credential_sets: the EU's official Proof of Age / Age Verification (AV) attestation, a Commission-maintained credential with a native age_over_18 boolean claim disclosed as-is, or the EUDI PID's birth date (the birthdate claim of an SD-JWT VC PID, or the birth_date element of an ISO/IEC 18013-5 mdoc PID), used only to compute that same boolean server-side and discarded immediately. A wallet answers with exactly one credential. The AV path is preferred wherever a wallet already holds it: it discloses a single, already-minimized boolean instead of a full birthdate, so it is strictly more data-minimizing than the PID fallback. The PID fallback exists because AV attestation issuance is still new and not yet universally held, and because the PID Rulebook has no age_over_18 claim, or any other age-derived claim, for a wallet to disclose directly, which is exactly why Nexiel Age never persists, logs, or returns the raw birthdate it computes from in that case. Neither alternative ever requests given_name, family_name, or nationalities. Those are what the separate aml-identity check type requests instead, for Nexiel Verify's and Nexiel Screen's identity-linked AML flow. The template itself is explicit about why:
{
"id": "age-verification",
"version": 3,
"description": "Age-gate check. Offers alternative ways to satisfy the same age-over-18 question, via DCQL credential_sets: the EU's official Proof of Age / Age Verification (AV) attestation (a native age_over_18 boolean claim, disclosed as-is, the preferred path where the wallet holds it), or the PID's birth date, from the SD-JWT VC PID or the ISO/IEC 18013-5 mdoc PID (used only to compute age_over_18 server-side, then discarded immediately, never persisted or logged). Exactly one is ever answered by a conformant wallet.",
"dcqlQuery": {
"credentials": [
{
"id": "av_age_over_18",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.av.1"
},
"claims": [
{
"path": [
"eu.europa.ec.av.1",
"age_over_18"
]
}
]
},
{
"id": "pid_birthdate",
"format": "dc+sd-jwt",
"meta": {
"vct_values": [
"urn:eudi:pid:1",
"urn:eudi:pid:de:1"
]
},
"claims": [
{
"path": [
"birthdate"
]
}
]
},
{
"id": "pid_birthdate_mdoc",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.eudi.pid.1"
},
"claims": [
{
"path": [
"eu.europa.ec.eudi.pid.1",
"birth_date"
]
}
]
}
],
"credential_sets": [
{
"options": [
[
"av_age_over_18"
],
[
"pid_birthdate"
],
[
"pid_birthdate_mdoc"
]
],
"required": true
}
]
}
}eu.europa.ec.av.1 is the ISO 18013-5 mdoc doctype of the EU age verification attestation. urn:eudi:pid:1 and the birthdate claim path follow the PID Rulebook (v1.7) and the EU reference PID issuer's credential configuration.
Try it in test mode
Nexiel Age is the Nexiel Verify API, so the same test key works. Get a Verify test key from the test keys page and exchange it for an access token (see authentication). A test-mode session accepts the synthetic credentials of the sandbox wallet: an adult PID, a minor PID (to see a check fail), and the EU age verification attestation. The quickstart walks through one session end to end.
Live mode. A live key verifies real wallets against the EU trusted lists the trust-list registry loads: the Commission list of PID providers for the PID alternative, and the EU age verification list for the AV alternative. A live session fails closed with a specific error until the list for the presented credential is in place, and until your relying-party access certificate and registration exist. The EU age verification profile below needs neither certificate. See going live.
The EU age verification profile
Nexiel Age verifies EU age verification attestations from issuers on the EU age verification trusted list (currently Denmark). Add "profile": "eu-age-verification" to an age-verification session to use the presentation profile the EU age verification specification defines for websites, which needs no relying-party registration.
Status. This profile works end to end in test mode. Live use is in progress: it has not yet been run against a real age verification app such as Denmark's AltID.
- The request asks for the EU age verification attestation's
age_over_18element and nothing else. There is no PID alternative. - It is not signed. Its
clientIdisredirect_uri:followed by the session's response address, andrequestUriisnull. You need no access certificate and no relying-party registration, in test or live mode. authorizationRequestUriis anav://link that carries the whole request. Show it as a QR code, or open it on the phone that holds the app, then poll the session or wait for its webhook. ThehostedUrlpage does this for you. The flow is alwayscross_device: there is no redirect back to your page.- A live session accepts an attestation only from an issuer on the EU age verification trusted list, read from the Commission's signed list after its signature is verified. Any other issuer fails the session with
issuer_not_trusted. - The wallet shows the user Nexiel's response address, not your organization's name, because this profile has no relying-party registration.
- There is no redirect back to your page, so whoever opens the link or scans the QR code completes the session. Tie the result to your own user session before you act on it.
- The app sends a standard ISO mdoc presentation. The profile's zero-knowledge proof presentation, sent through the browser's Digital Credentials API, is not supported yet.
curl -s -X POST https://compliance.nexiel.io/v1/verify/sessions \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"clientId": "docs-example-client", "checkType": "age-verification", "profile": "eu-age-verification"}'{
"sessionId": "6d2f0c4e-8a1b-4f3d-9e7c-2b5a4d1c0e9f",
"templateVersion": "age-verification@3",
"livemode": true,
"flow": "cross_device",
"profile": "eu-age-verification",
"clientId": "redirect_uri:https://compliance.nexiel.io/v1/verify/sessions/6d2f0c4e-8a1b-4f3d-9e7c-2b5a4d1c0e9f/responses",
"requestUri": null,
"authorizationRequest": {
"client_id": "redirect_uri:https://compliance.nexiel.io/v1/verify/sessions/6d2f0c4e-8a1b-4f3d-9e7c-2b5a4d1c0e9f/responses",
"response_type": "vp_token",
"response_mode": "direct_post",
"response_uri": "https://compliance.nexiel.io/v1/verify/sessions/6d2f0c4e-8a1b-4f3d-9e7c-2b5a4d1c0e9f/responses",
"nonce": "Q2v8xLm4-nonce-example-truncated-Hd7kPz1Ws",
"state": "bR6nJ3t-state-example-truncated-Xc9vLq2Fe",
"dcql_query": {
"credentials": [
{
"id": "av_age_over_18",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.av.1"
},
"claims": [
{
"path": [
"eu.europa.ec.av.1",
"age_over_18"
]
}
]
}
]
}
},
"authorizationRequestUri": "av://?response_type=vp_token&response_mode=direct_post&client_id=redirect_uri%3Ahttps%3A%2F%2Fcompliance.nexiel.io%2F...",
"dcApi": null,
"hostedUrl": "https://compliance.nexiel.io/v1/verify/hosted/6d2f0c4e-8a1b-4f3d-9e7c-2b5a4d1c0e9f#token=...",
"sandboxWalletUrl": null
}The app posts its answer unencrypted, as the profile specifies, and gets an empty JSON object back. You read the decision the same way as for any session, with GET /v1/verify/sessions/{sessionId}; credentialMechanism is av_mdoc. Start these sessions from your backend: the embeddable widget shows the av:// link of a session your backend creates, but its own keyless sandbox mode starts default-profile sessions only. In test mode, complete a session with the test helpers (persona adult or minor).
Create an age-verification session
Creating the session is a plain HTTP request. Completing it needs a wallet-signed presentation, which the sandbox wallet makes for you in test mode.
curl -s -X POST https://compliance.nexiel.io/v1/verify/sessions \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"clientId": "docs-example-client", "checkType": "age-verification"}'{
"sessionId": "8ab6d857-2cde-4108-a6f3-3f53a69e2fd7",
"templateVersion": "age-verification@3",
"livemode": false,
"clientId": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
"requestUri": "https://compliance.nexiel.io/v1/verify/sessions/8ab6d857-2cde-4108-a6f3-3f53a69e2fd7/request-object",
"flow": "cross_device",
"profile": "haip",
"sessionToken": "Yq3nW0vR8tLx...(truncated, 43 chars)",
"authorizationRequest": {
"client_id": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
"response_type": "vp_token",
"response_mode": "direct_post.jwt",
"response_uri": "https://compliance.nexiel.io/v1/verify/sessions/8ab6d857-2cde-4108-a6f3-3f53a69e2fd7/responses",
"nonce": "amIcbtsnz9umxzWKu--gPBHPUUmcH5R4TukgGSw-ALI",
"state": "jqz4jEBGULUkWgkp_lcpBsbgbV3adNuJvx5xxk55gus",
"dcql_query": {
"credentials": [
{
"id": "av_age_over_18",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.av.1"
},
"claims": [
{
"path": [
"eu.europa.ec.av.1",
"age_over_18"
]
}
]
},
{
"id": "pid_birthdate",
"format": "dc+sd-jwt",
"meta": {
"vct_values": [
"urn:eudi:pid:1",
"urn:eudi:pid:de:1"
]
},
"claims": [
{
"path": [
"birthdate"
]
}
]
},
{
"id": "pid_birthdate_mdoc",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.eudi.pid.1"
},
"claims": [
{
"path": [
"eu.europa.ec.eudi.pid.1",
"birth_date"
]
}
]
}
],
"credential_sets": [
{
"options": [
[
"av_age_over_18"
],
[
"pid_birthdate"
],
[
"pid_birthdate_mdoc"
]
],
"required": true
}
]
},
"client_metadata": {
"jwks": {
"keys": [
{
"kty": "EC",
"crv": "P-256",
"x": "kqYdLbmVZ0n7...(truncated)",
"y": "cU2k2Zp7z5oq...(truncated)",
"kid": "6f1c2e0a-4b7d-4f8e-9a3c-2d1e0f9b8a7c",
"use": "enc",
"alg": "ECDH-ES"
}
]
},
"encrypted_response_enc_values_supported": [
"A128GCM",
"A256GCM"
],
"vp_formats_supported": "...(truncated)"
},
"verifier_info": [
{
"format": "registration_cert",
"data": "eyJ0eXAiOiJyYy13cnArand0Ii...(truncated)"
}
]
},
"authorizationRequestUri": "openid4vp://?client_id=x509_hash%3AUvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk&request_uri=https%3A%2F%2Fcompliance.nexiel.io%2Fv1%2Fverify%2Fsessions%2F8ab6d857-2cde-4108-a6f3-3f53a69e2fd7%2Frequest-object&request_uri_method=post",
"dcApi": null,
"expiresAt": "2026-07-05T17:27:16.353Z",
"hostedUrl": "https://compliance.nexiel.io/v1/verify/hosted/8ab6d857-2cde-4108-a6f3-3f53a69e2fd7#token=Yq3nW0vR8tLx...",
"sandboxWalletUrl": "https://sandbox.nexiel.io/present?client_id=x509_hash%3AUvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk&request_uri=https%3A%2F%2Fcompliance.nexiel.io%2Fv1%2Fverify%2Fsessions%2F8ab6d857-2cde-4108-a6f3-3f53a69e2fd7%2Frequest-object&request_uri_method=post",
"metadata": {},
"transactionData": []
}The dcql_query names alternative credentials (the AV attestation, and the PID in each of its two formats), joined by credential_sets. A platform integrating Nexiel Age never receives a birthdate, or any other identity claim, either way. The AV alternative discloses only an already-native boolean, and the PID alternative's birthdate is computed into a boolean and the raw value discarded before this API ever sends a response back to your server.
The wallet discloses a birthdate, and you get back a boolean
The end user's wallet resolves authorizationRequestUri and answers with exactly one of the alternatives above: the AV attestation's native age_over_18 boolean, disclosed as-is, or the PID's birth date, in either format, computed into age_over_18 immediately, then discarded. The response is encrypted to the session's one-time key and POSTed back to response_uri. Either way this API returns the same boolean shape. The wallet's own reply carries only where to send the user next, never the outcome:
{
"redirect_uri": "https://compliance.nexiel.io/v1/verify/wallet-return"
}Your backend reads the decision with GET /v1/verify/sessions/{sessionId}. A wallet whose disclosed birthdate shows the holder is 18 or older, or whose AV attestation's native claim is already true, produces:
{
"sessionId": "8ab6d857-2cde-4108-a6f3-3f53a69e2fd7",
"clientId": "docs-example-client",
"checkType": "age-verification",
"templateVersion": "age-verification@3",
"livemode": false,
"status": "completed",
"createdAt": "2026-07-05T17:17:16.353Z",
"expiresAt": "2026-07-05T17:27:16.353Z",
"metadata": {},
"sandboxWalletUrl": null,
"decision": {
"method": "eudi_wallet",
"booleanProofs": {
"ageOver18": true
},
"amlResult": null,
"pepFlag": null,
"sanctionedFlag": null,
"listsChecked": [],
"humanReviewRequired": false,
"frozenDecisionArtifact": null,
"screeningCandidates": null,
"credentialMechanism": "av_mdoc",
"evidencePackStatus": "not_applicable",
"evidencePackDelivery": null,
"issuerCertificateStatus": {
"status": "good",
"handling": "accepted"
},
"credentialStatus": {
"status": "valid",
"mechanism": "status_list",
"handling": "accepted",
"unavailableReason": null
},
"transactionDataBinding": null,
"scaAuthentication": null,
"trustPolicy": {
"versionId": null,
"sha256": "9b1f0d6c2a4e8f3b7c5d1e9a0f2b4c6d8e1f3a5b7c9d0e2f4a6b8c0d1e3f5a7b",
"trustSource": "eu_pid_providers",
"issuerJurisdiction": null,
"trustAnchorSha256": null,
"issuerRegistration": null
},
"decidedAt": "2026-07-05T17:17:19.545Z"
}
}amlResult, pepFlag, sanctionedFlag, and listsChecked are all null or empty: an age-verification check never runs the sanctions and PEP matching engine, so there is nothing to screen and nothing to review. frozenDecisionArtifact is null for the same reason. The frozen decision artifact (engine version, list snapshot, ensemble weights hash, gates hash) makes a screening decision re-derivable months later, and an age check has no screening decision to freeze.
What gets persisted
- Session id, client id, timestamp, method, and the boolean proof (
ageOver18: true). Nothing else. - No birthdate. When the wallet answers with the PID fallback, it discloses one, but this API computes the boolean from it and discards the raw value inside the same request that received it, before anything is written to storage. When the wallet answers with the AV attestation instead, no birthdate is ever requested or disclosed at all: only the already-native boolean is.
- No name. No underlying claim value beyond the boolean.
- No raw wallet credential or presentation is ever written to storage.
A platform integrating Nexiel Age gets a boolean to act on, never a birthdate to store.
Reference
Nexiel Age has no separate API reference. Every route, parameter, and response schema it uses is documented on the Verify API reference. The two routes this page walks through are POST /v1/verify/sessions and POST /v1/verify/sessions/{sessionId}/responses with checkType: "age-verification".
Roadmap
- A dedicated Age-only API key scope, so a client can be restricted to age-verification sessions only.
- Metered billing and checkout for the published pay-as-you-go reference price.