Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tinyinbox.co/llms.txt

Use this file to discover all available pages before exploring further.

Each TinyInbox site has its own widget snippet. Install that snippet on the pages where visitors should be able to contact you.

Copy the snippet

Open Install widget in the dashboard and copy the script tag for your site.
<script
  async
  src="https://api.tinyinbox.app/widget.js"
  data-tinyinbox-site="tin_your_site_key"
></script>

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.

Domain checks

When a site has a domain configured, widget session requests must come from that host. TinyInbox checks the browser Origin or Referer before issuing a widget session token.

Add visitor details

If your site already knows the visitor’s name or email, pass it to TinyInbox after the widget loads.
window.TinyInbox = window.TinyInbox || []
window.TinyInbox.push([
  "identify",
  {
    name: currentUser.name,
    email: currentUser.email,
  },
])
Use identity verification for logged-in users when the visitor ID, name, or email must be trusted by your backend.