Skip to main content
POST
Subscribe

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

hub_id
string
required

Body

application/vnd.api+json
device
string | null
subscription
SubscriptionPayload · object | null

The subscription object from the browser's PushManager.

Response

Successful Response

data
JsonApiResource[WebPushSubscriptionAttributes] · object
required
included
any[] | null
meta
Meta · object | null