Skip to content
Push Notifications

Documentation

The call your scripts, monitoring tools and cron jobs make. Everything else is managed in the interface.

With GET

bash
curl "https://push.trfx.de/api/push?token=DEIN_TOKEN&subject=Backup&message=fertig"

With POST

bash
curl -X POST "https://push.trfx.de/api/push?token=DEIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"subject":"Backup","message":"fertig","key":"nas-01","severity":"info"}'
bash
curl -X POST "https://push.trfx.de/api/push?token=DEIN_TOKEN" -d $'Backup\nfertig\nhttps://status.example.com'

Plain text (Beszel, Shoutrrr): one line is the message, two are subject and message, three or more are subject, message and finally the footer.

Parameters

NameMeaning
tokenToken of the webhook (required). In the address or in the JSON.
subject / titleAppended to the subject template with “ - ”.
message / bodyPlaced below the message template.
footerAppended to the footer template with “ - ”.
urlAn http(s) address. The title in Discord becomes a link.
keyFree identifier of the caller (job, host). Goes to SAINT as its own field.
severitycritical, major, minor, info or ok. ok closes the alarm in SAINT.
anything elseShown as “Additional parameters”. Fields with timestamp or date in the name are shown in German time.

Response

json
{"success":true,"id":1234,"sent":{"discord":true,"browser":false,"calendar":false,"email":"pending","saint":false}}

true = delivered, “pending” = in the queue (email, calendar, SAINT), false = not planned or failed. The result per channel is in the log under the number id.

Error codes
  • 400 Token missing.
  • 404 Unknown token.
  • 413 Request larger than 64 KB.
  • 423 Webhook is paused.
  • 429 Too many requests (120 per minute per webhook).
You set subject, message and footer as templates in the webhook. What the call sends is added to them.

OpenAPI (JSON) · /api/health · /api/version

Keyboard shortcuts

CtrlK
Commands and search
?
This overview
Esc
Close
  • Home
  • Documentation•
  • Changes
  • Sign in
  • Sign up
  • System
  • Light
  • Dark
  • This overview?