MoEngage Outbound Segment Sync via Connected Apps
12 min
sync moengage segments to appstorys cohorts via connected apps overview this integration uses moengage's webhook channel to push segment membership to appstorys cohorts in real time each webhook call adds or removes a user from an appstorys cohort based on the action configured in your campaign prerequisites auth token from appstorys dashboard > integrations tab appstorys token generated when you create an integration cohort in appstorys each cohort has its own token step 1 create a connected app to create a connected app on the left navigation menu in the moengage dashboard, click app marketplace on the app marketplace page, click + create app in the create app dialog box, enter the following details field description app name appstorys app type click outbound segment sync (export moengage segments to your app) click create this adds your connected app as a destination in moengage you will be directed to the connected app page step 2 create an integration cohort in appstorys in your appstorys dashboard, go to the cohorts tab and create a new cohort select the integration cohort option once you complete the cohort configuration and publish it, appstorys will generate an appstorys token for that cohort you will use this token as the appstorys token url parameter in your moengage campaign step 3 create the webhook template in moengage in moengage, go to settings > channels > webhooks and create a new webhook template destination key value http method post destination url https //integrations appstorys com/moengage authorization header under the headers tab, add key value authorization bearer \<your auth token> the auth token is available in your appstorys dashboard under the integrations tab step 4 configure the campaign content when creating a webhook campaign in moengage using this template, configure the content editor as follows url parameters add these key value pairs in the url key value pairs section url parameters key value appstorys token \<your appstorys token> client id \<your appstorys account id> webhook content webhook content key value user identifier id string preferred destination identifier user id preferred configuration reference section field value webhook template http method post webhook template destination url https //integrations appstorys com/moengage webhook template header authorization bearer \<auth token> campaign content url param appstorys token , client id \<appstorys token> , \<your appstorys account id> campaign content user identifier, destination identifier id string, user id