cURL
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" } }
Updates the Twilio credentials for the given app.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
The Twilio Account SID
"AC91e67951ff7e5e7be8122184e76ae0e6"
The Twilio Auth Token
"71c2301435733997e83db7a3445bc57"
The Twilio sender phone number
"+13611364718"
Enable Twilio
A list of push notification's settings
Was this page helpful?