PUT
/
notifications
/
sms
/
v1
/
providers
/
twilio
Update Twilio credentials
curl --request PUT \
  --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"
  }
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Body

application/json

Response

200 - application/json

A list of push notification's settings

The response is of type object.