Get the public VAPID key
curl --request GET \
--url https://api.sitespy.app/api/v1/webpush/vapid-key \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/webpush/vapid-key"
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/vapid-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"public_key": "<string>"
}Web Push Notifications
Get the public VAPID key
Returns the server’s public VAPID key needed to subscribe to push notifications.
GET
/
webpush
/
vapid-key
Get the public VAPID key
curl --request GET \
--url https://api.sitespy.app/api/v1/webpush/vapid-key \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/webpush/vapid-key"
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/vapid-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"public_key": "<string>"
}
