Skip to content

Send a desktop notification to a target display using notify-send. Use this endpoint to surface alerts, status updates, or any event-driven message on the user’s desktop session. The notification is rendered by the system’s notification daemon on the specified display.

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

This endpoint takes no parameters.

Send a JSON object with the following fields:

NameTypeRequiredDescription
summarystringYesNotification summary/title
displaystringYesTarget display ID (e.g., "0" or ":0")
bodystringNoNotification body text
categorystringNoNotification category
expire_timeintegerNoExpiration time in milliseconds
iconstringNoIcon name or path
urgencystringNoNotification urgency level. One of low, normal, critical. Default: normal
Terminal window
curl -X POST https://api.hoody.com/api/v1/notifications/notify \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"summary": "Build Complete",
"display": "1",
"body": "Your deployment to production finished successfully.",
"category": "deployment",
"icon": "dialog-information",
"expire_time": 5000,
"urgency": "normal"
}'

Notification sent successfully.

{
"success": true,
"message": "Notification sent successfully"
}