Get web push subscription status
curl --request GET \
--url https://api.sitespy.app/api/v1/webpush/subscription \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/webpush/subscription"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/webpush/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"connected": true,
"subscription_count": 123
}Web Push Notifications
Get web push subscription status
Check whether the current API key has any active push subscriptions.
GET
/
webpush
/
subscription
Get web push subscription status
curl --request GET \
--url https://api.sitespy.app/api/v1/webpush/subscription \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/webpush/subscription"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/webpush/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"connected": true,
"subscription_count": 123
}
