Notifications and Webhooks
torq sends outbound notifications through webhooks and (since v1.17.0) email. Administrators configure webhook endpoints under Settings → Webhooks. Each endpoint formats messages in the language and units of the user who created it.
Events
| Event | Trigger | Severity |
|---|---|---|
reminder_due_soon | A reminder enters its "due soon" window | warning |
reminder_overdue | A reminder reaches or passes its limit | critical |
digest_weekly | Weekly summary of overdue and due-soon reminders | info |
digest_monthly | Monthly summary | info |
test | Triggered via Send test | info |
Each endpoint selects which events it subscribes to. Weekly and monthly digest schedules are configured under Settings → Instance.
Supported presets
- Discord
- ntfy
- Gotify
- Home Assistant
- Generic JSON
- URL: Paste your Discord channel webhook URL.
- Formatting: Rich embeds colored by severity (
info,warning,critical). - Sender name: Uses your shop/instance name if configured.
- URL: Your topic URL, e.g.
https://ntfy.example/torq. - Auth: For protected topics, add a custom header
Authorization: Bearer <token>. - Titles: Prefixed with your instance name if configured (e.g.
Garage Nord · Overdue: …).
- URL:
https://gotify.example/message. - Auth: Add your app token as a custom header
X-Gotify-Key. - Titles: Prefixed with your instance name if configured.
- URL: Your Home Assistant webhook trigger URL (
https://ha.example/api/webhook/<id>). - In automations: Reference fields such as
{{ trigger.json.title }},{{ trigger.json.reminder.state }}, and{{ trigger.json.vehicle.name }}.
- URL: Any HTTPS/HTTP endpoint accepting
POSTwithContent-Type: application/json. - Schema:
torq.notification/v1(documented below).
Custom HTTP headers can be attached to any endpoint. Header values are write-only — torq never displays or returns them after saving.
Click Send test after saving an endpoint. Every delivery attempt (including HTTP status code and response body) is recorded in the endpoint's delivery log.
Delivery and retries
Failed deliveries are automatically retried after 30 seconds, 2 minutes, and 10 minutes. Every attempt appears in the endpoint's delivery log.
Generic JSON payload (torq.notification/v1)
Example reminder_overdue payload:
{
"schema": "torq.notification/v1",
"event": "reminder_overdue",
"severity": "critical",
"title": "Overdue: Engine Oil & Filter — Mercedes-Benz C 220 CDI",
"message": "-350 km",
"url": "https://torq.example/vehicles/1/reminders",
"sent_at": "2026-10-30T08:00:00Z",
"reminder": {
"id": 7,
"name": "Engine Oil & Filter",
"state": "overdue",
"trigger": "km",
"next_due_km": 225000,
"next_due_date": "2027-10-15",
"remaining_km": -350,
"remaining_days": 350
},
"vehicle": {
"id": 1,
"name": "Mercedes-Benz C 220 CDI",
"license_plate": "B-TQ 646",
"current_odometer_km": 225350,
"odometer_unit": "km"
}
}
| Field | Meaning |
|---|---|
schema | Always torq.notification/v1 |
event | Event name from the table above |
severity | info, warning, or critical |
title, message | Human-readable text in the endpoint owner's language; distances use the vehicle's odometer_unit (e.g. 559 mi left) |
url | Deep link into torq (present only when TORQ_BASE_URL is set) |
sent_at | RFC 3339 timestamp |
reminder.state | due_soon or overdue |
reminder.trigger | Limit that triggered the state: km, time, or hours |
reminder.remaining_km, remaining_days | Negative when overdue; distances in JSON are always km |
reminder.hour_meter, next_due_hours, remaining_hours | Populated for hour-meter reminders; null otherwise |
instance.name | Instance name (present only when configured) |
vehicle.odometer_unit | km or mi |
vehicle | Vehicle object (omitted in digests, where each digest item carries its own vehicle) |
Digest JSON payload example (digest_weekly / digest_monthly)
Digests replace reminder and vehicle with a digest object:
{
"schema": "torq.notification/v1",
"event": "digest_weekly",
"severity": "info",
"title": "Weekly maintenance digest",
"message": "25",
"digest": {
"period": "weekly",
"overdue": [
{
"id": 7,
"name": "Engine Oil & Filter",
"state": "overdue",
"vehicle": { "id": 1, "name": "Mercedes-Benz C 220 CDI" }
}
],
"due_soon": []
}
}