Copy the snippet
Open Install widget in the dashboard, choose the site, and copy its script tag.Paste it into your site
Paste the script before the closing</body> tag. Most website builders and CMS
tools have a custom code area for this.
Use the exact snippet from your dashboard. Your site key is unique to that site.
Recommended app pattern
The widget script is async. If your app needs to configure labels, set a language, or identify a visitor, run those calls from client-only code after TinyInbox is ready. In app frameworks, use a client-only route/component boundary or framework loader that runs after hydration and auth state are known. Do not callwindow.TinyInbox during server rendering or directly during a
component render. Those phases can run more than once, be replayed, or happen
before the async widget runtime is ready.
For logged-in app users with signed identity, keep using the dashboard script
and pass the signed identityToken through TinyInbox.identify once auth state
is known. Do not rebuild the widget URL or site key in application code.
Set the visitor language
data-tinyinbox-language accepts auto, en, or zh-tw. Use auto to read
the page or browser language.
If your app has its own language picker, configure TinyInbox after the widget
loads. You can call this again whenever the visitor changes language.
Origin checks
Widget session requests must come from one of the site’s allowed origins. TinyInbox checks the browserOrigin or Referer before issuing a widget
session token.