SupportExperimental
Create a chat session
Opens Firsty support chat for this profile's customer, inside your own app. Boot the Intercom messenger with what comes back and nothing else: Intercom("boot", { app_id: appId, intercom_user_jwt: userToken, messenger_style_id: messengerStyleId }), leaving out messenger_style_id when the session has no messengerStyleId. Ask for a session each time rather than storing one. A profileReference of any other length answers 400. See Intercom's installation guide and JWT authentication.
/profiles/{profileReference}/chat-sessionsAuthorization
Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works
Path parameters
profileReferencestringrequiredProfile reference
Responses
201The chat sessionapplication/jsonShow response bodyHide response body
dataobjectoptionalShow propertiesHide properties
appIdstringThe Intercom workspace to boot the messenger in.
userTokenstringThe messenger's intercom_user_jwt. Bearer access to this customer's conversation for about an hour, so ask for a new session rather than storing it, and never log it.
messengerStyleIdstringoptionalThe messenger's messenger_style_id: your brand's look in Firsty support chat. Absent until Firsty has set up a style for your account, and the messenger then opens in the default look. It follows your account, not the page you boot the messenger on.
400Bad request - invalid parameters401Unauthorized - missing or invalid API key403Forbidden - client does not have access to this resource404Resource not found500Internal server error502Temporary service failure503Service temporarily unavailable. Safe to retry.