Mint a token
widget:identify scope. The raw token is returned here and nowhere
else. We store only its hash.
Hand it to the widget
Parameters
string
required
Your own identifier for the signed-in user. This is the identity, everything
else is optional detail.
string
Their email address, if you hold one.
string
Their display name, if you hold one.
string
Their phone number, if you hold one.
integer
default:"600"
Lifetime in seconds. Clamped to a maximum of 3600.
Notes
- Mint per page render. Tokens are short-lived by design. They may be presented more than once inside their window, so a single-page app re-initing the widget does not need a fresh one.
- Nothing breaks without it. A widget with no
identityTokenbehaves exactly as it always has: the pre-chat form runs and the visitor is treated as unidentified. An expired token is the same, never an error, never a blank widget. - A vouched-for visitor cannot be overwritten. Once we hold a verified identity for someone, the widget’s own public identify call will not change their details.