Skip to content
Hoody.com

Send desktop notifications to a target display using notify-send. This endpoint accepts a notification payload and dispatches it to the specified X11 display, with configurable urgency, icon, and expiration.

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

This endpoint takes no path, query, or header parameters.

NameTypeRequiredDescription
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
urgencystringNoNotification urgency level. Accepted values: low, normal, critical. Default: "normal"

Response 200 — Notification sent successfully

Section titled “Response 200 — Notification sent successfully”
{
"message": "Notification sent successfully",
"success": true
}
{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid notification payload"
}
{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "Failed to send notification"
}
Terminal window
curl -X POST "https://{projectId}-{containerId}-n-1.{server}.containers.hoody.icu/api/v1/notifications/notify" \
-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",
"urgency": "normal",
"expire_time": 5000
}'