What you need first
- An ingest key, minted in Hinto under Settings, API keys, or handed to you by the onboarding step. An ingest key is a publishable browser key: it can only write session data, it cannot read tickets, customers, or investigations, and you can revoke it at any time.
- Your app’s origin registered in Hinto (Settings, API keys, Allowed app origins). The browser blocks requests from an unregistered origin before they ever reach Hinto. Add
http://localhost:3000(or whichever port you use) while you develop.
Install
Initialize
Initialize once at app startup, and keep the returned client so you can callidentify later.
Identify your users
After sign-in, callidentify so sessions attach to a customer. See Identify users for email vs external id and why it matters.