Skip to content
Hoody.com

Send desktop notifications to a running Hoody container using the notify-send utility. These endpoints let you push system-level alerts, messages, or status updates to a specific display from any HTTP client, the Hoody CLI, or the Hoody SDK.

Triggers a new desktop notification on the target display.

This endpoint takes no parameters.

All fields below are sent as the JSON body of the POST request.

NameTypeRequiredDescription
displaystringYesTarget display ID (for example "1" or ":1")
summarystringYesNotification summary or title
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://{projectId}-{containerId}-n-1.{server}.containers.hoody.com/api/v1/notifications/notify" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"display": "1",
"summary": "Build Complete",
"body": "Your project compiled successfully in 42 seconds.",
"category": "build-status",
"expire_time": 5000,
"icon": "info",
"urgency": "normal"
}'

Returned when the notification is dispatched successfully on the target display.

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