POST
/
notifications
/
push
/
v1
/
tokens
Register push token
curl --request POST \
  --url https://{appid}.api-{region}.cometchat.io/v3/notifications/push/v1/tokens \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "platform": "fcm_android",
  "providerId": "fcm-provider-2",
  "fcmToken": "<string>",
  "authToken": "superhero3_1710141033938cf7e3c67cc44465440d",
  "timezone": "Asia/Kolkata"
}'
{
  "data": {
    "success": true
  }
}

Authorizations

apikey
string
header
required

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

Body

application/json

Response data

Response

200 - application/json

A list of push notification's settings

The response is of type object.