POST
/notification
{
"title": "string", // Required: Notification title
"message": "string", // Required: Notification message
"priority": integer // Optional: Pushover priority -2 to 2 (default: 0)
}
{
"success": boolean,
"message": "string"
}
curl -X POST http://localhost:8080/notification \
-H "Content-Type: application/json" \
-d '{
"title": "Hello World",
"message": "This is a test notification!"
}'
curl -X POST http://localhost:8080/notification \
-H "Content-Type: application/json" \
-d '{
"title": "Urgent Alert",
"message": "This is an important notification!",
"priority": 2
}'
fetch('/notification', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'Web Notification',
message: 'Sent from JavaScript!',
priority: 1
})
})
.then(response => response.json())
.then(data => console.log(data));
For Pushover notifications, set these environment variables:
PUSHOVER_USER_KEY=your_pushover_user_key
PUSHOVER_TOKEN=your_pushover_app_token