Skip to main content

API overview

The k-ID API is an HTTP RPC-style web API for interacting with k-ID. It provides methods for initiating Verifiable Parental Consent (VPC), initiating age verification, and getting enabled permissions for a player.

API structure

The k-ID API is a collection of HTTP RPC-style methods. All URLs are in the form https://{host}/api/v1/{method}. While it's not a REST API, those familiar with REST should be at home with its foundations in HTTP. All API methods use the GET or POST HTTP methods, depending on whether the API has side effects.

Arguments are passed as query parameters for GET methods, and as JSON in the request body for POST methods. All responses are in JSON format.

Base URLs

Live Mode:

https://game-api.k-id.com/api/v1/

Test Mode:

https://game-api.test.k-id.com/api/v1/

Endpoints

Age gate

EndpointDescription
/age-gate/get-requirementsGet age gate requirements for a jurisdiction
/age-gate/check-age-categoryCheck age category for a player
/age-gate/checkCheck age and create or update session
/age-gate/get-default-permissionsGet default permissions for a jurisdiction

Sessions

EndpointDescription
/session/getGet session by session ID or kuid
/session/upgradeUpgrade session permissions
/session/update-jurisdictionUpdate session jurisdiction
/session/set-guardian-managed-session-permissionsSet guardian-managed session permissions

Challenges

EndpointDescription
/challenge/getGet challenge details
/challenge/get-statusGet challenge status
/challenge/send-emailSend challenge email notification
/challenge/generate-otpGenerate one-time password for challenge

Age verification

EndpointDescription
/age-verification/perform-facial-age-estimationPerform facial age estimation verification
/age-verification/perform-id-verificationPerform ID document verification
/age-verification/perform-age-key-verificationPerform age key verification
/age-verification/perform-connect-id-verificationPerform ConnectID verification
/age-verification/perform-trusted-adult-verificationPerform trusted adult verification
/age-verification/perform-inferencePerform inference-based verification
/age-verification/perform-access-age-verificationPerform access age verification with all methods
/age-verification/perform-age-appealPerform age appeal verification
/age-verification/perform-custom-age-verificationPerform custom age verification
/age-verification/get-statusGet age verification status

Widgets

EndpointDescription
/widget/generate-age-gate-urlGenerate age gate widget URL
/widget/generate-direct-notices-urlGenerate data notices widget URL
/widget/generate-manage-session-permissions-urlGenerate session permissions management widget URL
/widget/generate-parental-consent-urlGenerate parental consent widget URL
/widget/generate-session-upgrade-urlGenerate session upgrade widget URL
/widget/generate-e2e-urlGenerate end-to-end widget URL

Test

EndpointDescription
/test/set-challenge-statusSet challenge status (test only)
/test/set-age-verification-statusSet age verification status (test only)