Authorizations
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Path Parameters
(Required) Push Token
Body
application/json
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/notifications/push/v1/tokens/{pushToken} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "authToken": "<string>"
}'{
  "data": {
    "pushTokens": [
      {
        "authToken": "superhero3_1710141033938cf7e3c67cc44465440d4efac8de",
        "pushTokenType": "chat",
        "createdAt": "2024-03-11T07:27:59.412Z",
        "platform": "fcm_android",
        "providerId": "fcm-provider-2",
        "pushToken": "{{uid3}}_fcm_android_asia_kolkata_4_new_mgmt",
        "uid": "superhero3",
        "updatedAt": "2024-03-13T11:24:47.776Z"
      }
    ]
  }
}Deletes the given push token
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/notifications/push/v1/tokens/{pushToken} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "authToken": "<string>"
}'{
  "data": {
    "pushTokens": [
      {
        "authToken": "superhero3_1710141033938cf7e3c67cc44465440d4efac8de",
        "pushTokenType": "chat",
        "createdAt": "2024-03-11T07:27:59.412Z",
        "platform": "fcm_android",
        "providerId": "fcm-provider-2",
        "pushToken": "{{uid3}}_fcm_android_asia_kolkata_4_new_mgmt",
        "uid": "superhero3",
        "updatedAt": "2024-03-13T11:24:47.776Z"
      }
    ]
  }
}API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
(Required) Push Token
Was this page helpful?