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": "cometchat-uid-3_1710141033938cf7e3c67cc44465440d",
  "timezone": "Asia/Kolkata"
}
'
{
  "data": {
    "success": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/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

Response data

platform
enum<string>

FCM push token platform.

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:

"cometchat-uid-3_1710141033938cf7e3c67cc44465440d"

timezone
string
Example:

"Asia/Kolkata"

Response

200 - application/json

A list of push notification's settings

data
any[]
meta
object