Skip to main content

I have created an app for Messenger . The app integrates to the messenger after installation from marketplace. Lets say i have 10 users who installed my app. When they click on the app in messenger , how do i know which user is hitting my express.js api .

 

Is there any token stored by Intercom while installing the app ? If yes, does it include this token while hitting my api?

Hi @Zach Read​  Can you provide some insights on this please.


Hey @narendra​ - when someone installs your app, you will have to have https://developers.intercom.com/building-apps/docs/setting-up-oauth"alt="http://https://developers.intercom.com/building-apps/docs/setting-up-oauth"target="_blank">fetched their Access Token through OAuth. The Access Token is linked to a workspace. You can make a call to `https://api.intercom.io/me`to https://developers.intercom.com/intercom-api-reference/reference#view-the-current-admin"alt="http://https://developers.intercom.com/intercom-api-reference/reference#view-the-current-admin"target="_blank">identify the current admin and workspace.

 

When someone uses a Canvas Kit app, as part of each request payload we give the workspace/app_id who made the call. https://developers.intercom.com/building-apps/docs/canvas-kit#section-requests-responses"alt="http://https://developers.intercom.com/building-apps/docs/canvas-kit#section-requests-responses"target="_blank">More here in the Canvas Kit docs.


Reply