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
}
}
Register a push token for the given auth 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
}
}
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Response data
A list of push notification's settings
The response is of type object
.