Firsty

Search...

Search...

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

POST /profiles/{profileReference}/chat-sessions
requests.post(
    "https://connect.test.firsty.app/api/v3/profiles/{profileReference}/chat-sessions",
    headers={
      "Authorization": "Bearer YOUR_ACCESS_TOKEN"
    }
)

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:

Intercom("boot", { app_id: appId, intercom_user_jwt: userToken });

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.