Skip to Content
ReferenceReference

Reference

Complete technical specifications for the Unchurn widget API, token format, events, environment variables, and error codes.

PageContents
Widget APInpm package surface, React components and hook, CDN runtime, createUnchurnHandler — full signatures, parameter tables, return shapes
Token formatSigned-token wire format, signing payload, verification rules, TTL (600 s max), language-agnostic signing recipe
EventsEvery widget-emitted event with its payload shape — subscribe via window.unchurn.events.on
Environment variablesServer environment variables and browser CSP requirements
Error codesHTTP error codes returned by the widget session API and the token signing handler