Remove push subscription(s)
curl --request DELETE \
--url https://api.sitespy.app/api/v1/webpush/subscription \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"endpoint": "<string>"
}
'import requests
url = "https://api.sitespy.app/api/v1/webpush/subscription"
payload = { "endpoint": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({endpoint: '<string>'})
};
fetch('https://api.sitespy.app/api/v1/webpush/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Web Push Notifications
Remove push subscription(s)
Remove a specific push subscription by endpoint, or remove all subscriptions if no endpoint is provided.
DELETE
/
webpush
/
subscription
Remove push subscription(s)
curl --request DELETE \
--url https://api.sitespy.app/api/v1/webpush/subscription \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"endpoint": "<string>"
}
'import requests
url = "https://api.sitespy.app/api/v1/webpush/subscription"
payload = { "endpoint": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({endpoint: '<string>'})
};
fetch('https://api.sitespy.app/api/v1/webpush/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
