curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/chatwoot/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '{
"settings": {
"chatwootAccessToken": "EgsDdxRZFUy4tPWDjwmyZaYk",
"chatwootAccountId": "12123",
"chatwootInboxId": "12345",
"customerSupportUid": "superhero2"
}
}'
{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"data": {
"settings": {
"chatwootAccessToken": "EgsXaxRZFUy4tPWDjwmyZvYk",
"customerSupportUid": "superhero1",
"chatwootInboxId": "12112",
"chatwootAccountId": "42113",
"appId": "212663ddb7a2b1b",
"webhookURL": "https://chatwoot-eu.cometchat.io/v1/reply?token=K1b_mZsa31lTuNQqbTo7xtRHY0y7UUqXfhsUJltruwM=.eyJhcHBJZCI6IjIxMAY2M2RkYjdhMmE2NmIifQ=="
}
}
}
}
}
Chatwoot : Store new settings for Chatwoot extension
curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/chatwoot/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '{
"settings": {
"chatwootAccessToken": "EgsDdxRZFUy4tPWDjwmyZaYk",
"chatwootAccountId": "12123",
"chatwootInboxId": "12345",
"customerSupportUid": "superhero2"
}
}'
{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"data": {
"settings": {
"chatwootAccessToken": "EgsXaxRZFUy4tPWDjwmyZvYk",
"customerSupportUid": "superhero1",
"chatwootInboxId": "12112",
"chatwootAccountId": "42113",
"appId": "212663ddb7a2b1b",
"webhookURL": "https://chatwoot-eu.cometchat.io/v1/reply?token=K1b_mZsa31lTuNQqbTo7xtRHY0y7UUqXfhsUJltruwM=.eyJhcHBJZCI6IjIxMAY2M2RkYjdhMmE2NmIifQ=="
}
}
}
}
}
AppID in which the extension has to be enabled/disabled
Store Chatwoot Settings
The response is of type object
.
Was this page helpful?