curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/intercom/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '{
"settings": {
"intercomAccessToken": "EgsDdxRZFUy4tPWDjwmyZvYk",
"customerSupportUid": "superhero2"
}
}'
{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"data": {
"settings": {
"appId": "212663ddb7a2a65a",
"customerSupportUid": "superhero2",
"intercomAccessToken": "EgsDdxRZFUy4tPWDjwmyZvYk",
"webhookURL": "https://intercom-eu.cometchat.io/v1/reply?token=8z2Yn1R2hEVmpENi7HA1pPAv0DfZvMPFT8SBSaRJgwk=eyJhcHBJZCI6IjIxMjY2M2RkYjdhMmE2NmIifQ=="
}
}
}
}
}
Intercom : Store new settings for Intercom extension
curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/intercom/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '{
"settings": {
"intercomAccessToken": "EgsDdxRZFUy4tPWDjwmyZvYk",
"customerSupportUid": "superhero2"
}
}'
{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"data": {
"settings": {
"appId": "212663ddb7a2a65a",
"customerSupportUid": "superhero2",
"intercomAccessToken": "EgsDdxRZFUy4tPWDjwmyZvYk",
"webhookURL": "https://intercom-eu.cometchat.io/v1/reply?token=8z2Yn1R2hEVmpENi7HA1pPAv0DfZvMPFT8SBSaRJgwk=eyJhcHBJZCI6IjIxMjY2M2RkYjdhMmE2NmIifQ=="
}
}
}
}
}
AppID in which the extension has to be enabled/disabled
Store Intercom Settings
The response is of type object
.
Was this page helpful?