cURL
curl --request POST \ --url https://{appid}.api-{region}.cometchat.io/v3/notifications/email/v1/providers/custom \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data '{ "isEnabled": true, "useStoredEmailID": true, "webhookURL": "<string>", "useBasicAuth": true, "basicAuthUsername": "<string>", "basicAuthPassword": "<string>" }'
{ "data": { "basicAuthUsername": "user889", "basicAuthPassword": "pass122", "isEnabled": true, "useBasicAuth": true, "useStoredEmailID": false, "webhookURL": "https://trigger-email.example.com/cometchat" } }
Saves the custom provider for Email Notifications for a given app.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Save the push notification's SMS custom provider
The response is of type object.
object