EndpointsAge gate

Check if age gate should be displayed

Returns what a jurisdiction requires of an age gate, so the gate can be built before any player age is known. Call it when a player first arrives: the response says whether a gate must be shown at all, which ages the jurisdiction treats as significant, whether age assurance is required, and which age collection methods are approved there.

GET
/age-gate/get-requirements
AuthorizationBearer <token>

In: header

Query Parameters

jurisdiction*string

The jurisdiction of the player, as either an ISO 3166-1 alpha-2 country code or an ISO 3166-2 subdivision code.

Match^[A-z]{2}(-[A-z0-9]{1,3})?$
platformName?string

The platform providing the age signal.

Value in

  • "k-id"
  • "meta-horizon"
  • "apple-ios"
  • "google-play"
  • "xbox"
platformAgeLow?integer

The minimum age in years reported by the platform.

platformAgeHigh?integer

The maximum age in years reported by the platform.

platformCategory?string

The platform-specific age category (e.g. "digital-youth", "13-15", "teen").

platformDeclarationType?string

The declaration type from the platform (e.g. Apple AgeRangeDeclaration or Google userStatus).

platformVerificationId?string

The verification ID for the k-id platform signal.

Match^[A-z0-9]{8}-[A-z0-9]{4}-[A-z0-9]{4}-[A-z0-9]{4}-[A-z0-9]{12}$
Formatuuid

Response Body

application/json

application/json

curl -X GET "https://example.com/age-gate/get-requirements?jurisdiction=US-CA"
{  "shouldDisplay": true,  "ageAssuranceRequired": true,  "digitalConsentAge": 13,  "civilAge": 18,  "minimumAge": 0,  "effectiveMinimumAge": 0,  "accessAge": 0,  "approvedAgeCollectionMethods": [    "date-of-birth",    "age-slider",    "platform-account"  ],  "permissions": [    {      "name": "loot-boxes-paid-gameplay-impacting",      "verifiedAgeThreshold": 18    }  ]}