Family SDK
Put k-ID's parental consent, parent linking and family controls inside your own product.
The Family SDK puts k-ID's verifiable parental consent (VPC) and parent linking (VPL) inside your own product. A parent signs in, approves a child for your product, and later manages that child's permissions, preferences, screen time and purchases, all without leaving your app or site.
The screens, rules and copy are the same ones the k-ID Family Portal uses. Your app decides where they appear and how they look.
How it differs from the CDK widgets
The CDK widgets are hosted pages you open in an iframe or a new tab, and the custom workflow calls the k-ID API from your server. The Family SDK renders the parent-facing flows as native UI in your own app or site:
| CDK widgets | Family SDK | |
|---|---|---|
| Where it runs | A k-ID page in an iframe, pop-up or redirect | Your own UI, built with the SDK for your platform |
| Who uses it | The player, at the age gate, and a parent following a link | The parent, signed in to your product |
| Look and feel | Compliance Studio branding | Your own styles, theme and copy |
| Parent management | Family Portal, on k-ID's domain | In your app, or on a page you choose |
| Key | Secret API key, from your server | Publishable key in your app, plus your secret key to confirm results |
The two work together. A child can still start at your age gate; the consent email k-ID sends the parent can link to your own page, where the Family SDK takes over (see Email links).
Supported platforms
| Platform | Package |
|---|---|
| React (web) | @k-id/family-react |
The guides below use the React SDK for their examples.
What a parent can do
The widget and hook names below are the React SDK's.
| Capability | What the parent can do | Drop-in widget | Build your own with |
|---|---|---|---|
| Sign in | Sign in or up with an emailed one-time code. There's no password and no separate k-ID account to create. | KidTrustedAdultAuth | useKidTrustedAdultAuth |
| Approve a child | Pick one of their children or add one, read your product's disclosures, choose permissions, preferences and screen time, verify their age, and approve. | KidChildSetup | useKidChildSetup and the step widgets |
| Answer k-ID emails | Open a consent request, parent invite or upgrade from a k-ID email, straight into your product. | KidFamilyRouter | parseKidFamilyRoute |
| See their children | List the children who use your product. | KidChildList | useKidManageChildren |
| Manage a child | Change permissions and preferences, set screen-time limits and quiet hours, answer extra-time requests, approve or deny purchases, see activity, and choose the activity email. | KidChildManagement | useKidChildManagement and the area hooks |
| Remove access | Revoke the child's access to your product, or unlink their account. | KidRevokeAccess, KidUnlinkAccount | useKidChildManagement |
Each widget's hook exposes the same state and actions, so you can start with the widgets and replace any one of them with your own UI later.
How it fits together
What the parent sees comes from your product's configuration in Compliance Studio: its permissions, data notices, preferences, screen-time controls, purchase controls and activity types. A tab or step your product doesn't configure is not shown.
Availability
Please contact k-ID to have this capability enabled for your organization.