Skip to main content
POST
/
notifications
/
sms
/
v1
/
providers
/
twilio
Save Twilio credentials
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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

For the complete error reference, see Error Guide.

Authorizations

apikey
string
header
required

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

Body

application/json
twilioAccountSID
string
required

The Twilio Account SID

Example:

"AC91e67951ff7e5e7be8122184e76ae0e6"

twilioAuthToken
string
required

The Twilio Auth Token

Example:

"71c2301435733997e83db7a3445bc57"

twilioSenderPhoneNumber
string
required

The Twilio sender phone number

Example:

"+13611364718"

isEnabled
boolean

Enable Twilio

Response

200 - application/json

A list of push notification's settings

data
any[]
meta
object