Send Fcm Notification Using Postman

Ever wished you could secretly test your app's push notifications without waiting for a developer to set up a complicated server? That’s exactly why thousands of tech enthusiasts, product managers, and even hobbyist app builders swear by Postman for sending Firebase Cloud Messaging (FCM) notifications. It’s like having a remote control for your phone’s alerts, letting you trigger that “Hello!” message from your laptop in seconds.
The magic here is that you don’t need to write a single line of code to simulate a push notification. You simply craft a request in Postman, paste a few keys, and hit “Send” — the phone buzzes with your custom message. This isn’t just a party trick; it saves hours of debugging and gives you instant feedback on how your app handles incoming alerts.
For everyday life, this tool is a lifesaver for anyone building or managing apps. Imagine you’re testing a food delivery app and want to see if the “Your order is out for delivery” alert looks right before real users get it. Instead of waiting for a full backend cycle, you fire off a test notification from Postman, check the locking screen, and adjust the title or emoji on the spot.
Must Read
Marketers also love this trick to preview promotional pushes before a big campaign. You can tweak the deep link, change the notification color, or even test silent data messages — all without bugging the engineering team. It also works wonders for teachers using custom school apps who want to send a quick “Class canceled” test to their own device.
To get started, you’ll need two things: your FCM server key (from Firebase console) and the device token of your test phone. Open Postman, create a new request, set the method to POST, and plug in the FCM endpoint: https://fcm.googleapis.com/fcm/send. Then, in the headers, add “Authorization: key=YOUR_SERVER_KEY” and “Content-Type: application/json” — that’s the secret handshake.

In the body, use the JSON format with “to” and your device token, then add a “notification” block with your title and body text. A common mistake is mixing up the server key with the web API key — use the “Server Key” from Firebase project settings, not the browser key. For a more reliable test, always copy your device token fresh from the app’s logging, as tokens can change after app reinstall.
Pro tip: save your FCM request as a collection inside Postman so you can reuse it daily. You can also use environment variables to swap between test and production tokens — that way, you never accidentally push a “Testing 123” to your boss’s phone. And if you want to send to multiple devices, change the “to” field to “registration_ids” and pass an array of tokens.

One of the coolest hacks is to use Postman’s “Pre-request Script” to automatically fetch your latest token from a local API. That means you never touch the token manually again — just refresh, and your notification fires. Another handy feature is saving different body templates: one for a simple alert, one for a data-only message, and one for a high-priority notification to override Do Not Disturb.
Remember, FCM has rate limits, so don’t spam your phone with 50 test notifications in a minute or you’ll get throttled. For a smoother experience, set a delay between sends using Postman’s “Runner” with a custom iteration count. And always check the response code — a 200 OK means success, while a 404 usually means your device token is stale.
Finally, keep your server key a secret — never share it in screenshots or public repos, or anyone could hijack your notifications. Use Postman’s built-in Vault to store sensitive values encrypted. With just five minutes of setup, you’ll wonder how you ever lived without this trick. So go ahead, send yourself a congratulatory push, and feel like a wizard with a dash to your own phone.
