# Firebase Push Notification via HTTP Node

**URL:** <https://community.n8n.io/t/firebase-push-notification-via-http-node/2742>\
**Category:** Questions\
**Tags:** http-request, external-api\
**Created:** [October 19, 2020, 6:35pm UTC](https://community.n8n.io/t/firebase-push-notification-via-http-node/2742 "2020-10-19T18:35:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![hamidrexa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hamidrexa/32/25264_2.png) [@hamidrexa](https://community.n8n.io/u/hamidrexa)\
**Post date:** [July 9, 2023, 11:03am UTC](https://community.n8n.io/t/firebase-push-notification-via-http-node/2742/5 "2023-07-09T11:03:55Z")

</div>

This API calling method is deprecated and no longer recommended. Instead, I suggest using the Oauth2 approach for authentication and the latest version of Firebase Cloud Messaging (FCM). You can find more information about the new version here: [FCM REST API Reference](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages/send).

To implement this solution, follow these steps:

1. Create an Oauth2 API Credential. Here’s an example screenshot:  
 ![photo_2023-07-09_14-22-09](https://europe1.discourse-cdn.com/n8n/original/3X/b/a/ba40c12eee82a90b4be500b715c53e23f2b2cd68.jpeg)
2. Set up the HTTP request with the following settings:  
 ![photo_2023-07-09_14-24-44](https://europe1.discourse-cdn.com/n8n/original/3X/d/e/de77f4030cdf630b02cebed615347212bc6fcaf3.jpeg)  
Here’s a sample body template (replace the ‘sample token’ with the user ID you want to target):

```auto
{
  "validate_only": false,
  "message": {
    "token": "cEb141NmHELjrPmZ:APA91bGEzoPt4RHMnkSUiVJFw0uWcmE_XiJMk-RE6jWcw1V2pFjbKBQQNMpRKKMZKhphanXRSCCDlR4TcaxQrITTZS08gQ7GId0tf973uVTVUW5Gx4jc6BvM9tl0uuxq_uONGH_Ge",
    "data": {
      "key1": "value1"
    },
    "notification": {
      "title": "New Message",
      "body": "Hello from FCM!"
    }
  }
}

```

---

_[View the full topic](https://community.n8n.io/t/firebase-push-notification-via-http-node/2742)._
