Get age range for category
Converts a platform-reported age category into the age range it implies in a given jurisdiction. Supply the jurisdiction and a `platform` age signal naming the source platform and its category. Because each platform defines its own coarse categories, k-ID maps the category onto the numeric range of ages a player could be under that jurisdiction's rules.
Authorization
api-key In: header
Request Body
application/json
Get age range for category request
TypeScript Definitions
Use the request body type in TypeScript.
Request payload for converting a platform category to an age range.
Response Body
application/json
application/json
curl -X POST "https://example.com/age-gate/get-platform-age-range"{ "ageLow": 13, "ageHigh": 17}{ "error": "INVALID_INPUT", "errorMessage": "Unknown platform name"}Check if age gate should be displayed GET
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 default permissions GET
Returns the permissions a player would receive by default in their jurisdiction, before any guardian consent. Supply the jurisdiction with at most one of `dateOfBirth`, `age`, or `kuid`; passing more than one is a bad request. With none, the player is treated as being of the current date's age. Nothing is persisted, so this is the endpoint for previewing what a jurisdiction permits before running an age gate.