Skip to main content
POST
/
notifications
/
push
/
v1
/
providers
/
fcm
Add FCM Provider
curl --request POST \
  --url https://{appId}.api-{region}.cometchat.io/v3/notifications/push/v1/providers/fcm \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "providerId": "<string>",
  "serviceAccountFilename": "<string>",
  "serviceAccountCreds": {
    "project_id": "<string>",
    "client_email": "<string>",
    "private_key": "<string>",
    "private_key_id": "<string>"
  },
  "notificationInPayload": {
    "ios": {
      "chat": true,
      "call": true
    },
    "android": {
      "chat": true,
      "call": true
    },
    "web": {
      "chat": true,
      "call": true
    }
  }
}
'
{
  "data": {
    "success": true
  }
}

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
providerId
string
serviceAccountFilename
string
serviceAccountCreds
object
notificationInPayload
object

Response

200 - application/json

A list of push notification's settings

data
any[]
meta
object