Send a test email notification
curl --request POST \
--url https://api.sitespy.app/api/v1/settings/user/test-email \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/settings/user/test-email"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/settings/user/test-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Test email sent successfully"
}{
"success": false,
"message": "Email notifications are not enabled"
}User Settings
Send a test email notification
Send a test email to verify email notification settings are configured correctly.
POST
/
settings
/
user
/
test-email
Send a test email notification
curl --request POST \
--url https://api.sitespy.app/api/v1/settings/user/test-email \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/settings/user/test-email"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/settings/user/test-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Test email sent successfully"
}{
"success": false,
"message": "Email notifications are not enabled"
}
