Core conceptsAccess, features, and consent

Age gate

An Age Gate is a mechanism used to collect and verify a user's age before allowing access to age-restricted content, features, or services. Age gates are required by regulations in many jurisdictions to ensure compliance with laws governing digital content access for minors.

What's an age gate?

Age gates serve several important purposes:

  • Regulatory Compliance: Meet legal requirements for verification in different jurisdictions
  • Content Protection: Prevent minors from accessing inappropriate content
  • Data Privacy: Ensure proper handling of children's data according to regulations such as COPPA, GDPR-K, and others
  • Parental Control: Enable parents to make informed decisions about their children's digital access

Age gate

When's an age gate required?

To determine whether an age gate is required, call the /age-gate/get-requirements API with the user's jurisdiction. The API returns:

  • shouldDisplay: Whether an age gate should be displayed based on local regulations
  • approvedAgeCollectionMethods: Which methods are allowed for collecting age in this jurisdiction
  • digitalConsentAge: The minimum age at which a user can provide digital consent
  • civilAge: The civil/contract age at which a user is considered a legal adult
  • minimumAge: The minimum age required to access the platform/product
  • ageAssuranceRequired: Whether age verification is required for users in this jurisdiction

Info

If /age-gate/get-requirements responds with shouldDisplay = false, then no age gate should be shown and the user's date of birth isn't defined. In this case, the app still creates a Session by retrieving default permissions for the jurisdiction by calling /age-gate/get-default-permissions, which means that permissions don't vary based on age in this jurisdiction. Some features in a product might be prohibited for all age audiences based on jurisdiction, so the product should still consult the Session permissions to check whether a feature can be enabled.

Showing an age gate

If an age gate is required (shouldDisplay = true), the age gate UI should be shown, and the user must enter a date of birth to continue.

Certain jurisdictions are specific on whether an age gate can contain a slider, or must request an explicit date of birth. The allowed methods for collecting age are specified in the approvedAgeCollectionMethods field:

  • date-of-birth: Full date of birth (YYYY-MM-DD)
  • age-slider: Age range or approximate age selection
  • platform-account: Using existing platform account age verification

Best Practice

When showing an age gate, a best practice is to show a "neutral age gate," one which doesn't have an age already set so the user has to take action to set an age. Additionally, if the age gate uses a slider for the age value, it's recommended by the ESRB that the maximum age in a slider age gate should be 35.

Date of birth format

The date of birth can be provided in any of the following formats:

  • YYYY (year only)
  • YYYY-MM (year and month)
  • YYYY-MM-DD (full date of birth)

The jurisdiction determines which format is required or acceptable. Some jurisdictions require full date of birth, while others allow less precise age information.

Checking age for access

After the user provides their age, call /age-gate/check with the date of birth and jurisdiction to determine the next step in the workflow:

  • PROHIBITED: The user's age is below the minimum age for the product. The user should be blocked from continuing.
  • CHALLENGE: The user must complete a challenge before accessing the product. The challenge.type field distinguishes the sub-flow (for example CHALLENGE_PARENTAL_CONSENT for Verifiable Parental Consent, or CHALLENGE_AGE_GATE_AGE_ASSURANCE when product-level age assurance applies).
  • PASS: The user can continue into the product. A session is created or returned on the response.

Handling age assurance

Some markets require proof of age beyond what the user enters at the age gate. In CDK, k-ID handles this with Adaptive Access, configured in Compliance Studio:

  • At the age gate: with product-level age assurance on, /age-gate/check returns a CHALLENGE_AGE_GATE_AGE_ASSURANCE challenge for users who claim an age at or above the trigger age you set. The session is created after the user passes. If the user fails, no session is created. A trustworthy platform age signal can satisfy the check without a challenge.
  • At a feature: with feature-level age assurance on, permissions that need a verified age carry a verifiedAgeThreshold and stay disabled until the user verifies through /session/upgrade.

Branch on the challenge.type that /age-gate/check returns. The ageAssuranceRequired field from /age-gate/get-requirements is a reporting value set in Compliance Studio; it doesn't start a check or predict one.

On this page