Documentation
The call your scripts, monitoring tools and cron jobs make. Everything else is managed in the interface.
With GET
curl "https://push.trfx.de/api/push?token=DEIN_TOKEN&subject=Backup&message=fertig"With POST
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"}'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
| Name | Meaning |
|---|---|
token | Token of the webhook (required). In the address or in the JSON. |
subject / title | Appended to the subject template with “ - ”. |
message / body | Placed below the message template. |
footer | Appended to the footer template with “ - ”. |
url | An http(s) address. The title in Discord becomes a link. |
key | Free identifier of the caller (job, host). Goes to SAINT as its own field. |
severity | critical, major, minor, info or ok. ok closes the alarm in SAINT. |
anything else | Shown as “Additional parameters”. Fields with timestamp or date in the name are shown in German time. |
Response
{"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
400Token missing.404Unknown token.413Request larger than 64 KB.423Webhook is paused.429Too 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.