Send a test notification
curl --request POST \
--url https://api.sitespy.app/api/v1/notifications/test \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"notification_urls": [
"json://example.com/webhook"
]
}
'import requests
url = "https://api.sitespy.app/api/v1/notifications/test"
payload = { "notification_urls": ["json://example.com/webhook"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({notification_urls: ['json://example.com/webhook']})
};
fetch('https://api.sitespy.app/api/v1/notifications/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Test notification sent"
}Notifications
Send a test notification
Send a test notification to verify webhook URL(s) are configured correctly. Available on all plans.
POST
/
notifications
/
test
Send a test notification
curl --request POST \
--url https://api.sitespy.app/api/v1/notifications/test \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"notification_urls": [
"json://example.com/webhook"
]
}
'import requests
url = "https://api.sitespy.app/api/v1/notifications/test"
payload = { "notification_urls": ["json://example.com/webhook"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({notification_urls: ['json://example.com/webhook']})
};
fetch('https://api.sitespy.app/api/v1/notifications/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Test notification sent"
}Authorizations
API key for authentication. You can find your API key in the Site Spy dashboard under Settings → API.
Body
application/json
List of notification URLs

