Skip to main content
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
  • Option 1
  • Option 2
  • Option 3

Response data

platform
enum<string>
Available options:
fcm_android,
fcm_ios,
fcm_web,
fcm_flutter_android,
fcm_flutter_ios,
fcm_react_native_android,
fcm_react_native_ios,
fcm_ionic_cordova_android,
fcm_ionic_cordova_ios
providerId
string
Example:

"fcm-provider-2"

fcmToken
string
authToken
string
Example:

"superhero3_1710141033938cf7e3c67cc44465440d"

timezone
string
Example:

"Asia/Kolkata"

Response

200 - application/json

A list of push notification's settings

data
any[]
meta
object