cURL
curl --request POST \ --url https://push.platform.arb.inc/web-push/anonymous/subscribe \ --header 'Content-Type: application/json' \ --data ' { "vapidKey": "BEl62iUYgUivxIkv69yViEuiBIa-Ib27SDbQjfTbSAiJ-r7lJCndYzohTxb2L8yfWJrykPocwn0hzNnXxHGP0Qo", "subscription": { "endpoint": "https://fcm.googleapis.com/fcm/send/cyZ...", "keys": { "p256dh": "BEl62iUYgUivxIkv69yViEuiBIa-Ib27SDbQjfTbSAiJ-r7lJCndYzohTxb2L8yfWJrykPocwn0hzNnXxHGP0Qo", "auth": "53_d2d..." } } } '
{ "subscriptionID": "123e4567-e89b-12d3-a456-426614174000" }
Registers an unknown/unsigned-in browser subscription for web push notifications.
Subscription details and VAPID key.
The public VAPID key used for subscription.
"BEl62iUYgUivxIkv69yViEuiBIa-Ib27SDbQjfTbSAiJ-r7lJCndYzohTxb2L8yfWJrykPocwn0hzNnXxHGP0Qo"
The browser push subscription object.
Show child attributes
The push service endpoint URL.
"https://fcm.googleapis.com/fcm/send/cyZ..."
Encryption keys.
User agent public key (P-256 curve).
Authentication secret.
"53_d2d..."
Successfully subscribed to web push notifications.
The ID of the created subscription.
"123e4567-e89b-12d3-a456-426614174000"