Skip to main content
Age Verification

Update age verification credentials and age limits

PUT/v4/config/platform/extension/age-verification/identity-credential

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 pid or passport on, all age limits must be false: these credentials prove the age with the birth date.
  • With photoID on, only isOver18 can be true.
  • 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

  • Authorizationstringheaderrequired

    Your API key with the prefix ApiKey: ApiKey <your-api-key>. Get an API key.

    Scope:extensions:update

Body

application/json
  • identityCredentialsobjectrequired

    The credentials that a wallet can present. All four flags are mandatory.

  • ageLimitsobjectrequired

    The age limits. All three flags are mandatory.

Response

application/json

The new credentials and age limits of the extension.

  • identityCredentialobject[]

    The credentials and their state. The member name is singular.

  • ageLimitsobject[]

    The age limits and their state.