Skip to content
Hoody.com

Send desktop notifications to the container’s display via notify-send. Use this endpoint to surface alerts, status updates, or asynchronous results to a user watching the container’s desktop session.

POST /api/v1/notifications/notify

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

This endpoint takes no parameters.

NameTypeRequiredDefaultDescription
displaystringYesTarget display ID (e.g., "1" or ":1")
summarystringYesNotification summary/title
bodystringNoNotification body text
categorystringNoNotification category
expire_timeintegerNoExpiration time in milliseconds
iconstringNoIcon name or path
urgencystringNo"normal"Notification urgency level. One of: low, normal, critical
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 '{
"summary": "Test Notification",
"body": "This is a test message from the API.",
"display": "1",
"category": "test-api",
"icon": "info",
"expire_time": 5000,
"urgency": "normal"
}'