Path Parameters
AppID in which the extension has to be enabled/disabled
Body
application/json
Response
200 - application/json
Store Email Notification Settings
curl --request POST \
  --url https://apimgmt.cometchat.io/apps/{appId}/extensions/email-notification/v1/settings \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "settings": {
    "sendGridApiKey": "1q6Re9CYAAfzLZyB8F4eMNX0Pslyv222",
    "messageDelay": 120,
    "senderEmail": "mymail@example.com",
    "senderName": "John Doe",
    "sendGridTemplateId": "f5c0102d",
    "sendGridUnsubscribeGroupId": "sendGridUnsubscribeGroupId",
    "useWebhook": false,
    "webhookURL": "https://example.com",
    "useWebhookBasicAuth": false,
    "webhookUsername": "username",
    "webhookPassword": "f5c0102d"
  }
}'{
  "data": {
    "statusCode": 200,
    "success": true,
    "responseTime": 3.061743974685669,
    "body": {
      "data": {
        "settings": {
          "messageDelay": 120,
          "senderEmail": "mymail@example",
          "senderName": "John Doe",
          "sendGridApiKey": "key_1234",
          "sendGridTemplateId": "Template_1234",
          "sendGridUnsubscribeGroupId": "Group_1234",
          "useWebhook": true,
          "webhookURL": "http://example.com",
          "useWebhookBasicAuth": true,
          "webhookUsername": "username",
          "webhookPassword": "fgh356$123ggh**"
        }
      }
    }
  }
}Email Notification : Store new settings for Email notification extension
curl --request POST \
  --url https://apimgmt.cometchat.io/apps/{appId}/extensions/email-notification/v1/settings \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "settings": {
    "sendGridApiKey": "1q6Re9CYAAfzLZyB8F4eMNX0Pslyv222",
    "messageDelay": 120,
    "senderEmail": "mymail@example.com",
    "senderName": "John Doe",
    "sendGridTemplateId": "f5c0102d",
    "sendGridUnsubscribeGroupId": "sendGridUnsubscribeGroupId",
    "useWebhook": false,
    "webhookURL": "https://example.com",
    "useWebhookBasicAuth": false,
    "webhookUsername": "username",
    "webhookPassword": "f5c0102d"
  }
}'{
  "data": {
    "statusCode": 200,
    "success": true,
    "responseTime": 3.061743974685669,
    "body": {
      "data": {
        "settings": {
          "messageDelay": 120,
          "senderEmail": "mymail@example",
          "senderName": "John Doe",
          "sendGridApiKey": "key_1234",
          "sendGridTemplateId": "Template_1234",
          "sendGridUnsubscribeGroupId": "Group_1234",
          "useWebhook": true,
          "webhookURL": "http://example.com",
          "useWebhookBasicAuth": true,
          "webhookUsername": "username",
          "webhookPassword": "fgh356$123ggh**"
        }
      }
    }
  }
}AppID in which the extension has to be enabled/disabled
Show child attributes
Store Email Notification Settings
Show child attributes
Was this page helpful?