Authorizations
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Body
application/json
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.
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"
  }
}API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Was this page helpful?