Age Verification
Update age verification credentials and age limits
Sets which credentials a wallet can present for age verification, and which age limits the request asks for. The extension then updates its presentation definition. Send all flags in each request.
Rules:
- At least one credential must be
true. - With
pidorpassporton, all age limits must befalse: these credentials prove the age with the birth date. - With
photoIDon, onlyisOver18can betrue. - The age verification credential (
ageVerification) takes any combination of age limits.
A request that changes nothing leaves the presentation definition as it is. The answer is 404 when the extension is off or waits for its signing key.
Authorizations
AuthorizationstringheaderrequiredYour API key with the prefix
ApiKey:ApiKey <your-api-key>. Get an API key.Scope:
extensions:update
Body
application/json
identityCredentials objectrequiredThe credentials that a wallet can present. All four flags are mandatory.
ageLimits objectrequiredThe age limits. All three flags are mandatory.
Response
application/json
The new credentials and age limits of the extension.
identityCredential object[]The credentials and their state. The member name is singular.
ageLimits object[]The age limits and their state.