Darstellung
Webhook-Ereignisse
Tourblick sendet jedes Ereignis per POST als JSON an die URL eines Webhooks, der das Ereignis abonniert hat. Jeder Status 2xx gilt als Empfang; sonst wird die Zustellung mehrfach wiederholt. Wie Sie die Signatur im Header Tourblick-Signature prüfen, zeigt die Anleitung Webhooks.
| Ereignis | Wann |
|---|---|
tour.started | Tour gestartet – mit Tracking-Links aller Stopps |
stop.link_created | Tracking-Link für einen nachträglich hinzugefügten Stopp erzeugt |
stop.next | Empfänger ist als Nächstes dran |
stop.completed | Stopp zugestellt |
tour.finished | Tour beendet |
tour.started
Tour gestartet – mit Tracking-Links aller Stopps
Tourblick sendet das Ereignis tour.started per POST an die hinterlegte URL. Prüfe den Header Tourblick-Signature. Bei Fehlschlag wird mehrfach wiederholt.
| Header | Inhalt |
|---|---|
Tourblick-Signature | t=<unix>,v1=<hex HMAC-SHA256(secret, "<t>.<body>")> |
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | Ereignis-ID (für Duplikaterkennung). |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
tenant_id | string (uuid) | ja | |
type | string | ja | Werte: tour.started. |
data | object | ja | |
data.tour | object | ja | Tour mit Fahrer, Depot und Zustand. |
data.tour.id | string (uuid) | ja | |
data.tour.tenant_id | string (uuid) | ja | |
data.tour.name | string | ja | |
data.tour.planned_date | string (date) | null | ja | Datum (YYYY-MM-DD). |
data.tour.depot_id | string (uuid) | null | ja | |
data.tour.return_to_depot | boolean | ja | |
data.tour.driver_id | string (uuid) | null | ja | |
data.tour.status | string | ja | Zustand der Tour. Werte: planned, started, finished. |
data.tour.started_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
data.tour.finished_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
data.tour.finish_reason | string | null | ja | driver = vom Fahrer beendet, auto = automatisch. Werte: driver, auto. |
data.tour.current_stop_id | string (uuid) | null | ja | |
data.tour.external_ref | string | null | ja | |
data.tour.route_geometry | object | null | ja | Strecke als GeoJSON-LineString. |
data.tour.optimized_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
data.tour.stop_count | integer | ja | Anzahl Stopps. |
data.tour.completed_stop_count | integer | ja | Anzahl erledigter Stopps. |
data.tour.created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
data.tour.updated_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
data.stops | array<object> | ja | |
data.stops[].stop_id | string (uuid) | ja | |
data.stops[].external_ref | string | null | ja | |
data.stops[].email | string (email) | null | ja | Länge höchstens 320 Zeichen. |
data.stops[].tracking_url | string (uri) | ja |
json
{
"id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"created_at": "2026-11-24T08:15:00.000Z",
"tenant_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"type": "tour.started",
"data": {
"tour": {
"id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"tenant_id": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Tour Nord – Dienstag",
"planned_date": "2026-11-25",
"depot_id": "9d403f51-6e70-4182-9d2e-3f4a5b6c7d8e",
"return_to_depot": false,
"driver_id": "8c3f2e40-5d6f-4071-8c1d-2e3f4a5b6c7d",
"status": "planned",
"started_at": null,
"finished_at": null,
"finish_reason": null,
"current_stop_id": null,
"external_ref": "WW-2026-11-25-N",
"route_geometry": null,
"optimized_at": null,
"stop_count": 2,
"completed_stop_count": 0,
"created_at": "2026-11-24T08:15:00.000Z",
"updated_at": "2026-11-24T08:15:00.000Z"
},
"stops": [
{
"stop_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"external_ref": "string",
"email": "anna.schmidt@example.com",
"tracking_url": "https://ihre-firma.de/tourblick/webhook"
}
]
}
}stop.link_created
Tracking-Link für einen nachträglich hinzugefügten Stopp erzeugt
Tourblick sendet das Ereignis stop.link_created per POST an die hinterlegte URL. Prüfe den Header Tourblick-Signature. Bei Fehlschlag wird mehrfach wiederholt.
| Header | Inhalt |
|---|---|
Tourblick-Signature | t=<unix>,v1=<hex HMAC-SHA256(secret, "<t>.<body>")> |
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | Ereignis-ID (für Duplikaterkennung). |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
tenant_id | string (uuid) | ja | |
type | string | ja | Werte: stop.link_created. |
data | object | ja | |
data.tour_id | string (uuid) | ja | |
data.stop_id | string (uuid) | ja | |
data.external_ref | string | null | ja | |
data.email | string (email) | null | ja | Länge höchstens 320 Zeichen. |
data.tracking_url | string (uri) | ja |
json
{
"id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"created_at": "2026-11-24T08:15:00.000Z",
"tenant_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"type": "stop.link_created",
"data": {
"tour_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"stop_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"external_ref": "string",
"email": "anna.schmidt@example.com",
"tracking_url": "https://ihre-firma.de/tourblick/webhook"
}
}stop.next
Empfänger ist als Nächstes dran
Tourblick sendet das Ereignis stop.next per POST an die hinterlegte URL. Prüfe den Header Tourblick-Signature. Bei Fehlschlag wird mehrfach wiederholt.
| Header | Inhalt |
|---|---|
Tourblick-Signature | t=<unix>,v1=<hex HMAC-SHA256(secret, "<t>.<body>")> |
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | Ereignis-ID (für Duplikaterkennung). |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
tenant_id | string (uuid) | ja | |
type | string | ja | Werte: stop.next. |
data | object | ja | |
data.tour_id | string (uuid) | ja | |
data.stop_id | string (uuid) | ja | |
data.external_ref | string | null | ja | |
data.email | string (email) | null | ja | Länge höchstens 320 Zeichen. |
data.tracking_url | string (uri) | ja |
json
{
"id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"created_at": "2026-11-24T08:15:00.000Z",
"tenant_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"type": "stop.next",
"data": {
"tour_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"stop_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"external_ref": "string",
"email": "anna.schmidt@example.com",
"tracking_url": "https://ihre-firma.de/tourblick/webhook"
}
}stop.completed
Stopp zugestellt
Tourblick sendet das Ereignis stop.completed per POST an die hinterlegte URL. Prüfe den Header Tourblick-Signature. Bei Fehlschlag wird mehrfach wiederholt.
| Header | Inhalt |
|---|---|
Tourblick-Signature | t=<unix>,v1=<hex HMAC-SHA256(secret, "<t>.<body>")> |
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | Ereignis-ID (für Duplikaterkennung). |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
tenant_id | string (uuid) | ja | |
type | string | ja | Werte: stop.completed. |
data | object | ja | |
data.tour_id | string (uuid) | ja | |
data.stop_id | string (uuid) | ja | |
data.external_ref | string | null | ja | |
data.email | string (email) | null | ja | Länge höchstens 320 Zeichen. |
data.tracking_url | string (uri) | ja |
json
{
"id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"created_at": "2026-11-24T08:15:00.000Z",
"tenant_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"type": "stop.completed",
"data": {
"tour_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"stop_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"external_ref": "string",
"email": "anna.schmidt@example.com",
"tracking_url": "https://ihre-firma.de/tourblick/webhook"
}
}tour.finished
Tour beendet
Tourblick sendet das Ereignis tour.finished per POST an die hinterlegte URL. Prüfe den Header Tourblick-Signature. Bei Fehlschlag wird mehrfach wiederholt.
| Header | Inhalt |
|---|---|
Tourblick-Signature | t=<unix>,v1=<hex HMAC-SHA256(secret, "<t>.<body>")> |
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | Ereignis-ID (für Duplikaterkennung). |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
tenant_id | string (uuid) | ja | |
type | string | ja | Werte: tour.finished. |
data | object | ja | |
data.tour_id | string (uuid) | ja | |
data.finish_reason | string | ja | driver = vom Fahrer beendet, auto = automatisch. Werte: driver, auto. |
data.completed_stops | integer | ja | |
data.open_stops | integer | ja |
json
{
"id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"created_at": "2026-11-24T08:15:00.000Z",
"tenant_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"type": "tour.finished",
"data": {
"tour_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"finish_reason": "driver",
"completed_stops": 1,
"open_stops": 1
}
}