account

Get push notifications in this browser

Changed on

Saves the browser's push subscription. The account's first subscription also turns push on for every notification that can go to push.

post/v1/account.addPushSubscription

Request

  • Base URL: https://api.steamsets.com
  • URL: https://api.steamsets.com/v1/account.addPushSubscription
  • Auth: HTTP bearer

Request body

$schemastring uri

A URL to the JSON Schema for this object.

authstring required

The auth secret of the PushSubscription, base64url

endpointstring required

The endpoint of the browser's PushSubscription

p256dhstring required

The p256dh key of the PushSubscription, base64url

userAgentstring

Names the device in the settings

Example request

{
  "$schema": "https://api.steamsets.com/schemas/AccountAddPushSubscriptionRequestBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

Example response

{
  "$schema": "https://api.steamsets.com/schemas/AccountAddPushSubscriptionResponseBody.json"
}

Changes