Minting a token
Do this server-side. Your API key must never reach the browser.What the token can do
Deliberately very little:- One component. An
inboxtoken cannot openusage. - One customer. It cannot address another workspace.
- Your origins only.
origin_allowlistmeans a leaked token will not render on someone else’s site. - Short-lived. 5 minutes to 7 days. Mint per page load rather than storing one.
- Revocable.
DELETE /v1/platform/embed-tokens/{id}kills it before expiry.
phone_number_id to scope a component to one number when a customer has several.
Theme and locale
Passlocale to render in your customer’s language. Components follow the viewer’s light or dark preference, so they sit inside your product without a jarring switch.