Core concepts
Support chat
Open Firsty support for one of your customers, inside your own app.
Your customers reach Firsty support without leaving your app. Your backend asks for a chat session for one of your profiles, and your app boots the Intercom messenger with what comes back. Your access token never leaves your backend, and the customer needs no Firsty account of their own.
Opening a session
Call it from your backend, with the same bearer token as the rest of the API.
The token decides which profiles you reach: a profile your account does not
hold answers 404, exactly as a profile that does not exist does.
Booting the messenger
Pass both fields and nothing else:
appId names the Intercom workspace to boot. userToken names the customer
and proves you vouch for them, so the messenger opens as that customer without
asking them who they are. Intercom's own documentation covers
loading the messenger
and the JWT it accepts.
Sessions and conversations
The conversation belongs to the profile, so a customer who wrote last month opens the same thread and your agents see what was said before.
userToken is bearer access to that conversation and expires about an hour
out. Ask for a session each time a customer opens support rather than storing
one, and never log it.