curl --request POST \
--url https://{appid}.api-{region}.cometchat.io/v3/notifications/sms/v1/providers/twilio \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"twilioAccountSID": "AC91e67951ff7e5e7be8122184e76ae0e6",
"twilioAuthToken": "71c2301435733997e83db7a3445bc57",
"twilioSenderPhoneNumber": "+13611364718",
"isEnabled": true
}'
{
"data": {
"twilioAccountSID": "AC91e67951ff7e5e7be8122184e76ae0e6=",
"twilioAuthToken": "71c2301435733997e83db7a3445bc57",
"twilioSenderPhoneNumber": "+13611364718"
}
}
Store the Twilio credentials for the given app.
curl --request POST \
--url https://{appid}.api-{region}.cometchat.io/v3/notifications/sms/v1/providers/twilio \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"twilioAccountSID": "AC91e67951ff7e5e7be8122184e76ae0e6",
"twilioAuthToken": "71c2301435733997e83db7a3445bc57",
"twilioSenderPhoneNumber": "+13611364718",
"isEnabled": true
}'
{
"data": {
"twilioAccountSID": "AC91e67951ff7e5e7be8122184e76ae0e6=",
"twilioAuthToken": "71c2301435733997e83db7a3445bc57",
"twilioSenderPhoneNumber": "+13611364718"
}
}
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
A list of push notification's settings
The response is of type object
.
Was this page helpful?