Skip to content

Send native desktop notifications to a target display via notify-send. Use this endpoint to dispatch OS-level notifications with configurable urgency, icons, categories, and expiration times. The notification is rendered on the display identified by the display field (e.g., "0" or ":0").

POST /api/v1/notifications/notify

Triggers a new desktop notification using notify-send on the target display.

This endpoint takes no parameters.

The request body must be a JSON object conforming to the notifications_NotifyRequest schema.

NameTypeRequiredDefaultDescription
summarystringYesNotification summary/title
displaystringYesTarget display ID (e.g., "0" or ":0")
bodystringNoNotification body text
categorystringNoNotification category
iconstringNoIcon name or path
expire_timeintegerNoExpiration time in milliseconds
urgencystringNo"normal"Notification urgency level. One of: low, normal, critical
{
"message": "Notification sent successfully",
"success": true
}
Terminal window
curl -X POST https://api.hoody.com/api/v1/notifications/notify \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"display": "1",
"summary": "Test Notification",
"body": "This is a test message from the API.",
"category": "test-api",
"icon": "info",
"expire_time": 5000,
"urgency": "normal"
}'