Back to home

Documentation

SDK integration, consent flows, and current state-law coverage.

Quick Start

npm install @copply/sdk

API Reference

verify(params)
Check if user meets age requirements for their state.
requestConsent(params)
Initiate parental consent flow.
checkConsentStatus(userId)
Check if parental consent is still valid.
onConsentExpiry(callback)
Register a callback for consent expiry handling.

Error Codes

INVALID_API_KEYKey missing or revoked
NETWORK_ERRORRetry with backoff
CONSENT_EXPIREDRequest fresh consent
STATE_NOT_SUPPORTEDEnable in dashboard
RATE_LIMITEDUpgrade plan

Compliance Checklist

Texas HB 18, effective January 1, 2026: min age 13, parental consent required, auto-delete after expiry.
California, effective January 1, 2027: advisory mode until enforced.
Louisiana, effective July 1, 2026: min age 18 for social apps.
Utah SB 152, effective May 1, 2026: strictest mode with card or ID verification for minors.
Federal COPPA baseline: min age 13 with parental consent.