A web push endpoint is the unique URL a browser gives your site when a visitor subscribes to push notifications. Your server sends each encrypted message to that URL. The browser’s push service runs it: Google for Chrome, Mozilla for Firefox, Apple for Safari, and Microsoft for Edge on Windows.
The endpoint is the one part of web push that most site owners never see, yet it decides where every notification goes. When I explain web push to non-developers, I compare it to a private mailbox address. The browser hands you the address, the push service runs the mailbox, and you can only drop sealed letters into it.
Key facts at a glance:
- What it is: the endpoint property of a PushSubscription, a URL defined by the W3C Push API.
- Who runs it: the browser’s push service, not your website and not your push provider.
- How you send: an HTTP POST to the endpoint, following RFC 8030, with VAPID authentication and an encrypted payload.
- Keep it private: MDN advises keeping the endpoint secret, because anyone with it could try to send messages.
- It can expire: a 404 or 410 response means the subscription is gone.
What does a web push endpoint look like?
A web push endpoint is a long HTTPS URL on the push service’s domain, ending in a random token. The host tells you which push service a subscriber uses. Here are the common hosts, checked in November 2026.
| Browser | Push service | Typical endpoint host |
|---|---|---|
| Chrome, Opera, Brave | Google’s push service (Firebase Cloud Messaging) | fcm.googleapis.com |
| Firefox | Mozilla Autopush | updates.push.services.mozilla.com |
| Safari on macOS and iOS | Apple Push Notification service (APNs) | web.push.apple.com (subdomains of push.apple.com) |
| Microsoft Edge on Windows | Windows Push Notification Services (WNS) | wns2-xxxx.notify.windows.com |
The token part is opaque. You can’t read a person’s identity from it, and you shouldn’t try to build or edit it. Your code only stores the full URL as the browser gave it. Apple’s web push documentation asks servers to allow any subdomain of push.apple.com for this reason.
How do you get the endpoint from a subscription?
You get the endpoint when your site calls pushManager.subscribe() inside a service worker registration. The browser returns a PushSubscription object, and its JSON form holds the endpoint plus two keys, p256dh and auth.
const reg = await navigator.serviceWorker.ready;
const sub = await reg.pushManager.subscribe({
userVisibleOnly: true,
applicationServerKey: vapidPublicKey
});
// sub.toJSON() looks like:
// { endpoint: "https://fcm.googleapis.com/fcm/send/abc...",
// expirationTime: null,
// keys: { p256dh: "BN...", auth: "k8..." } }
await fetch('/save-subscription', { method: 'POST', body: JSON.stringify(sub) });Your server saves all three values together. The endpoint says where to send, while the keys let your server encrypt the payload so only that browser can read it. I cover the encryption side in how web push notifications are encrypted.
How does your server use the endpoint?
Your server sends one HTTP POST request per subscriber to that subscriber’s endpoint. The request carries the encrypted payload and a few headers defined by RFC 8030 and RFC 8292.
- Authorization: a VAPID JWT signed with your private key, plus your public key.
- TTL: how many seconds the push service should hold the message if the device is offline.
- Content-Encoding: aes128gcm, the encryption format for the payload.
- Urgency (optional): very-low, low, normal or high.
- Topic (optional): lets a newer message replace an older one still waiting.
The push service replies with 201 Created when it accepts the message. That doesn’t guarantee the person saw it; it only means the service queued it. For the headers in depth, read what VAPID keys are and how long a push waits for offline devices.
Why is the endpoint different for each browser?
Each browser vendor runs its own push service, so each one issues endpoints on its own domain. The Push API standard deliberately leaves the push service to the browser. Your site never chooses it.
This design has a practical effect. A sender that hard-codes Firebase Cloud Messaging (FCM) will fail for Firefox, Safari and Edge on Windows. A correct sender reads the host from each stored endpoint and posts there. Standard web push libraries for PHP, Node.js and Python already work this way.
It also explains why subscribers can’t simply move between providers or domains. The endpoint is tied to the subscription your site’s service worker created with your VAPID public key. See why web push subscriptions are tied to your domain for what that means when you change domain.
Should you keep the endpoint secret?
Yes, treat the endpoint as private data. MDN’s page on PushSubscription.endpoint advises keeping it secret, because other applications could otherwise try to send push messages to that user.
VAPID limits the damage, since a push service checks that the request is signed with the key used at subscribe time. Even so, I store endpoints like any personal data: in the database, behind access control, and never in public logs or analytics tools. That also helps with privacy rules; see what data a web push service stores.
What happens when an endpoint stops working?
An endpoint stops working when the subscription expires or the person unsubscribes, blocks notifications or clears site data. The push service then returns 404 Not Found or 410 Gone, and your server should delete that endpoint.
| Response | Meaning | What to do |
|---|---|---|
| 201 Created | Message accepted and queued | Nothing |
| 400 Bad Request | Malformed request or bad header (for example TTL 0 on WNS) | Fix the request |
| 401 or 403 | VAPID signature problem or key mismatch | Check keys and JWT claims |
| 404 or 410 | Subscription gone | Delete the endpoint |
| 413 | Payload too large (over about 4 KB) | Shorten the payload |
| 429 | Too many requests | Slow down and retry later |
Cleaning out dead endpoints keeps your delivery numbers honest and your send jobs fast. The full clean-up process is in my post on the 410 Gone error in web push. The browser can also replace an endpoint on its own; the pushsubscriptionchange event is how you catch that.
Where LaraPush fits
LaraPush is a self-hosted web push panel, so subscriber data sits in a MySQL database on your own VPS rather than with a SaaS vendor. It delivers through Google Firebase Cloud Messaging, supports CSV import and export, and includes a REST API with no call limits. The trade-offs: you run the server, the licence covers one server, and there’s no free plan. Prices start from $499 one-time; see LaraPush pricing and the feature list. If you’re comparing tools, my guide to push notification services is a good next read.
Frequently asked questions
It’s a unique URL that a browser’s push service creates when someone subscribes to your site’s notifications. Your server sends encrypted messages to it with an HTTP POST. The URL is run by Google, Mozilla, Apple or Microsoft, depending on the browser.
Treat it as personal data. It identifies one browser on one device, and MDN advises keeping it secret. Store it securely, limit access and delete it when the person unsubscribes or the push service returns 404 or 410.
In practice, no. Modern push services expect a VAPID-signed request, and Apple’s documentation lists a missing or invalid JWT as an error. The VAPID public key in the request must also match the one used when the browser created the subscription.
It can. Push services may expire subscriptions, and browsers can replace them. When that happens, the old endpoint returns 404 or 410. Listen for the pushsubscriptionchange event and re-save the new subscription where the browser supports it.
Each browser uses its own push service. Chrome endpoints usually point to fcm.googleapis.com, while Firefox endpoints point to Mozilla’s Autopush on updates.push.services.mozilla.com. Your server should send to whatever host each subscription contains.




