How this host sends alerts to people's devices (Web Push): the key a browser subscribes with, and, to someone signed in, how many of their devices it alerts.
Output
Encoding
application/jsondevices
integer
Optional
To the caller, signed in: how many of their devices get alerts.
publicKey
string
Required
The host's VAPID public key, base64url.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "How this host sends alerts to people's devices (Web Push): the key a browser subscribes with, and, to someone signed in, how many of their devices it alerts.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"devices": {
"description": "To the caller, signed in: how many of their devices get alerts.",
"minimum": 0,
"type": "integer"
},
"publicKey": {
"description": "The host's VAPID public key, base64url.",
"type": "string"
}
},
"required": [
"publicKey"
],
"type": "object"
}
},
"type": "query"
}