Stable Hosts

Sign this phone up for the app's push notifications

Changed on

tenant-web-push. A signed-in end user only (an end-user Bearer, else the hosted-auth cookie), from a page on the app's own origin. A user holds up to 10 phones; an 11th replaces the one that re-confirmed longest ago. Not served from api.run402.com.

post/_run402/push/subscriptions

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/_run402/push/subscriptions
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-Http-r402_session

Request body

endpointstring uri required

Must be on a browser push service (Google, Apple, Mozilla or Microsoft).

expiration_timeinteger nullable

Response

Already signed up; re-confirmed.

subscription_idstring required
user_idstring uuid required
status'subscribed' required
replaced_subscription_idstring nullable required

The user's phone that re-confirmed longest ago, replaced because this was an 11th.

Changes