Darstellung
Schemas
Die wichtigsten Objekte der API mit allen Feldern. Felder mit | null sind immer vorhanden, können aber leer sein. Zeitpunkte sind ISO 8601, IDs UUIDs.
| Schema | Beschreibung |
|---|---|
Health | |
Tour | Tour mit Fahrer, Depot und Zustand |
TourStatusResponse | Zustand einer Tour: gestartet, aktueller Stopp, letzte Position |
Stop | Stopp (Empfänger und Adresse) |
StopsBulkResult | Sammelergebnis mit Einzelfehlerbericht je Zeile |
OptimizeResult | |
CsvImportResult | |
GeocodeResult | |
Depot | Depot (Start- und optional Endpunkt einer Tour) |
User | Nutzer eines Mandanten (Admin und/oder Fahrer) |
ApiKey | API-Schlüssel (ohne Klartext) |
ApiKeyCreated | Neu angelegter Schlüssel mit einmalig gezeigtem Klartext |
TenantSettings | Einstellungen des Mandanten |
AuditLogEntry | |
Branding | Logo, Farben und Name des Mandanten |
Webhook | |
WebhookWithSecret | |
WebhookDelivery | |
Domain | Eigene Domain für Tracking-Seiten |
Usage | Verbrauch des Mandanten im Monat |
Error | Einheitliches Fehlerformat |
Health
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
status | string | ja | Werte: ok, degraded. |
version | string | ja | |
environment | string | ja | Werte: local, staging, production, test. |
time | string (date-time) | ja | Zeitpunkt (ISO 8601). |
checks | object | – |
Beispiel
json
{
"status": "ok",
"version": "0.1.0",
"environment": "local",
"time": "2026-11-24T08:15:00.000Z",
"checks": {
"database": "ok"
}
}Tour
Tour mit Fahrer, Depot und Zustand
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
tenant_id | string (uuid) | ja | |
name | string | ja | |
planned_date | string (date) | null | ja | Datum (YYYY-MM-DD). |
depot_id | string (uuid) | null | ja | |
return_to_depot | boolean | ja | |
driver_id | string (uuid) | null | ja | |
status | string | ja | Zustand der Tour. Werte: planned, started, finished. |
started_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
finished_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
finish_reason | string | null | ja | driver = vom Fahrer beendet, auto = automatisch. Werte: driver, auto. |
current_stop_id | string (uuid) | null | ja | |
external_ref | string | null | ja | |
route_geometry | object | null | ja | Strecke als GeoJSON-LineString. |
route_geometry.type | string | ja | Werte: LineString. |
route_geometry.coordinates | array<array<[number, number]>> | ja | [lng, lat]-Paare. |
optimized_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
stop_count | integer | ja | Anzahl Stopps. |
completed_stop_count | integer | ja | Anzahl erledigter Stopps. |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
updated_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"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"
}TourStatusResponse
Zustand einer Tour: gestartet, aktueller Stopp, letzte Position
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
tour_id | string (uuid) | ja | |
status | string | ja | Zustand der Tour. Werte: planned, started, finished. |
started_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
finished_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
current_stop_id | string (uuid) | null | ja | |
completed_stops | integer | ja | |
open_stops | integer | ja | |
last_position | object | null | ja | Letzte Position, nur bei gestarteter Tour. |
last_position.lat | number | ja | Bereich -90–90. |
last_position.lng | number | ja | Bereich -180–180. |
last_position.accuracy | number | null | ja | |
last_position.heading | number | null | ja | |
last_position.speed | number | null | ja | |
last_position.recorded_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"tour_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"status": "started",
"started_at": "2026-11-24T07:00:00.000Z",
"finished_at": null,
"current_stop_id": "bf625173-8092-43a4-bf40-5b6c7d8e9fa0",
"completed_stops": 0,
"open_stops": 2,
"last_position": {
"lat": 52.5145,
"lng": 13.3501,
"accuracy": 8,
"heading": 90,
"speed": 11.2,
"recorded_at": "2026-11-24T09:41:12.000Z"
}
}Stop
Stopp (Empfänger und Adresse)
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
tenant_id | string (uuid) | ja | |
tour_id | string (uuid) | null | ja | null = noch keiner Tour zugeordnet. |
first_name | string | null | ja | |
last_name | string | null | ja | |
company | string | null | ja | |
address_line | string | ja | |
postal_code | string | ja | |
city | string | ja | |
country | string | ja | Ländercode ISO 3166-1 alpha-2. Muster ^[A-Z]{2}$. |
lat | number | null | ja | Bereich -90–90. |
lng | number | null | ja | Bereich -180–180. |
geocode_status | string | ja | uncertain und failed erscheinen in der Verwaltung zur Korrektur. Werte: pending, ok, uncertain, failed, manual. |
geocode_quality | number | null | ja | Trefferqualität 0..1. Bereich 0–1. |
email | string (email) | null | ja | Nur gespeichert und in Webhooks zurückgegeben; nach Tourende gelöscht. Länge höchstens 320 Zeichen. |
phone | string | null | ja | Nur für den Anruf durch den Fahrer; nach Tourende gelöscht. Muster ^\+[1-9]\d{6,14}$. |
external_ref | string | null | ja | Externe Referenz, z. B. Bestellnummer. |
notes | string | null | ja | |
time_window_start | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
time_window_end | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
sequence | integer | null | ja | Position in der Tour (ab 1). |
fixed | boolean | ja | Bleibt bei der Optimierung an seiner Position. |
status | string | ja | Werte: open, completed. |
completed_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
tracking_url | string (uri) | null | ja | Tracking-Link; vorhanden ab Tourstart. |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
updated_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"id": "bf625173-8092-43a4-bf40-5b6c7d8e9fa0",
"tenant_id": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b",
"tour_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"first_name": "Anna",
"last_name": "Schmidt",
"company": null,
"address_line": "Invalidenstraße 50",
"postal_code": "10557",
"city": "Berlin",
"country": "DE",
"lat": 52.5251,
"lng": 13.3694,
"geocode_status": "ok",
"geocode_quality": 0.97,
"email": "anna.schmidt@example.com",
"phone": "+4915112345678",
"external_ref": "B-100234",
"notes": "Hinterhaus, 2. OG",
"time_window_start": null,
"time_window_end": null,
"sequence": 1,
"fixed": false,
"status": "open",
"completed_at": null,
"tracking_url": null,
"created_at": "2026-11-24T08:15:00.000Z",
"updated_at": "2026-11-24T08:15:00.000Z"
}StopsBulkResult
Sammelergebnis mit Einzelfehlerbericht je Zeile
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
created_count | integer | ja | |
failed_count | integer | ja | |
results | array<object> | ja |
Beispiel
json
{
"created_count": 1,
"failed_count": 1,
"results": [
{
"index": 0,
"status": "created",
"stop": {
"id": "bf625173-8092-43a4-bf40-5b6c7d8e9fa0",
"tenant_id": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b",
"tour_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"first_name": "Anna",
"last_name": "Schmidt",
"company": null,
"address_line": "Invalidenstraße 50",
"postal_code": "10557",
"city": "Berlin",
"country": "DE",
"lat": 52.5251,
"lng": 13.3694,
"geocode_status": "ok",
"geocode_quality": 0.97,
"email": "anna.schmidt@example.com",
"phone": "+4915112345678",
"external_ref": "B-100234",
"notes": "Hinterhaus, 2. OG",
"time_window_start": null,
"time_window_end": null,
"sequence": 1,
"fixed": false,
"status": "open",
"completed_at": null,
"tracking_url": null,
"created_at": "2026-11-24T08:15:00.000Z",
"updated_at": "2026-11-24T08:15:00.000Z"
}
},
{
"index": 1,
"status": "failed",
"errors": [
{
"field": "postal_code",
"message": "PLZ fehlt"
}
]
}
]
}OptimizeResult
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
tour_id | string (uuid) | ja | |
applied | boolean | ja | |
stop_ids | array<string (uuid)> | ja | Neue Reihenfolge aller Stopps. |
total_distance_m | integer | ja | |
total_duration_s | integer | ja | |
geometry | object | null | ja | Strecke als GeoJSON-LineString. |
geometry.type | string | ja | Werte: LineString. |
geometry.coordinates | array<array<[number, number]>> | ja | [lng, lat]-Paare. |
unassigned_stop_ids | array<string (uuid)> | ja | Nicht planbar (z. B. ohne Koordinaten). |
warnings | array<string> | ja | Hinweise, z. B. verletzte Zeitfenster. |
Beispiel
json
{
"tour_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f",
"applied": true,
"stop_ids": [
"c0736284-91a3-44b5-8051-6c7d8e9fa0b1",
"bf625173-8092-43a4-bf40-5b6c7d8e9fa0"
],
"total_distance_m": 18450,
"total_duration_s": 2940,
"geometry": {
"type": "LineString",
"coordinates": [
[
13.404954,
52.520008
],
[
13.3694,
52.5251
]
]
},
"unassigned_stop_ids": [],
"warnings": []
}CsvImportResult
Beispiel
json
{
"mode": "preview",
"delimiter": ";",
"columns": [
{
"index": 0,
"header": "Name",
"samples": [
"Schmidt"
]
},
{
"index": 1,
"header": "Vorname",
"samples": [
"Anna"
]
},
{
"index": 2,
"header": "Straße",
"samples": [
"Invalidenstraße 50"
]
},
{
"index": 3,
"header": "PLZ",
"samples": [
"10557"
]
},
{
"index": 4,
"header": "Ort",
"samples": [
"Berlin"
]
}
],
"suggested_mapping": {
"last_name": 0,
"first_name": 1,
"address_line": 2,
"postal_code": 3,
"city": 4
},
"rows_total": 1,
"valid_rows": 1,
"preview_rows": [
{
"row": 2,
"stop": {
"last_name": "Schmidt",
"first_name": "Anna",
"address_line": "Invalidenstraße 50",
"postal_code": "10557",
"city": "Berlin"
}
}
],
"errors": []
}GeocodeResult
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
status | string | ja | Werte: ok, uncertain, failed. |
best | object | null | ja | |
best.lat | number | ja | Bereich -90–90. |
best.lng | number | ja | Bereich -180–180. |
best.quality | number | ja | Trefferqualität 0..1. Bereich 0–1. |
best.formatted_address | string | ja | |
best.address_line | string | null | ja | |
best.postal_code | string | null | ja | |
best.city | string | null | ja | |
best.country | string | null | ja | Ländercode ISO 3166-1 alpha-2. Muster ^[A-Z]{2}$. |
candidates | array<object> | ja | |
candidates[].lat | number | ja | Bereich -90–90. |
candidates[].lng | number | ja | Bereich -180–180. |
candidates[].quality | number | ja | Trefferqualität 0..1. Bereich 0–1. |
candidates[].formatted_address | string | ja | |
candidates[].address_line | string | null | ja | |
candidates[].postal_code | string | null | ja | |
candidates[].city | string | null | ja | |
candidates[].country | string | null | ja | Ländercode ISO 3166-1 alpha-2. Muster ^[A-Z]{2}$. |
provider | string | ja |
Beispiel
json
{
"status": "ok",
"best": {
"lat": 52.5251,
"lng": 13.3694,
"quality": 0.97,
"formatted_address": "Invalidenstraße 50, 10557 Berlin, Deutschland",
"address_line": "Invalidenstraße 50",
"postal_code": "10557",
"city": "Berlin",
"country": "DE"
},
"candidates": [],
"provider": "local"
}Depot
Depot (Start- und optional Endpunkt einer Tour)
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
tenant_id | string (uuid) | ja | |
name | string | ja | |
address_line | string | ja | Straße und Hausnummer. Länge 1–300 Zeichen. |
postal_code | string | ja | Länge 1–20 Zeichen. |
city | string | ja | Länge 1–120 Zeichen. |
country | string | ja | Ländercode ISO 3166-1 alpha-2. Muster ^[A-Z]{2}$. |
lat | number | ja | Bereich -90–90. |
lng | number | ja | Bereich -180–180. |
is_default | boolean | ja | |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
updated_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"id": "9d403f51-6e70-4182-9d2e-3f4a5b6c7d8e",
"tenant_id": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Lager Mitte",
"address_line": "Friedrichstraße 123",
"postal_code": "10117",
"city": "Berlin",
"country": "DE",
"lat": 52.520008,
"lng": 13.404954,
"is_default": true,
"created_at": "2026-11-01T10:00:00.000Z",
"updated_at": "2026-11-01T10:00:00.000Z"
}User
Nutzer eines Mandanten (Admin und/oder Fahrer)
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
tenant_id | string (uuid) | ja | |
email | string (email) | ja | Länge höchstens 320 Zeichen. |
display_name | string | null | ja | |
roles | array<string> | ja | Mindestens eine Rolle. Werte: admin, driver. Anzahl mindestens 1 Einträge. |
status | string | ja | Werte: invited, active, disabled. |
mfa_enabled | boolean | ja | Zwei-Faktor eingeschaltet. |
last_login_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
updated_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"id": "8c3f2e40-5d6f-4071-8c1d-2e3f4a5b6c7d",
"tenant_id": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b",
"email": "max.fahrer@example.com",
"display_name": "Max Fahrer",
"roles": [
"driver"
],
"status": "active",
"mfa_enabled": false,
"last_login_at": "2026-11-24T06:02:00.000Z",
"created_at": "2026-11-01T10:00:00.000Z",
"updated_at": "2026-11-24T06:02:00.000Z"
}ApiKey
API-Schlüssel (ohne Klartext)
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
name | string | ja | |
prefix | string | ja | Erste 12 Zeichen des Schlüssels. |
created_by | string (uuid) | null | ja | |
last_used_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
revoked_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"id": "d1847395-a2b4-45c6-9162-7d8e9fa0b1c2",
"name": "Warenwirtschaft",
"prefix": "tb_live_4fQ9",
"created_by": "7b2e1d3f-4c5e-4f60-9b0c-1d2e3f4a5b6c",
"last_used_at": null,
"revoked_at": null,
"created_at": "2026-11-24T08:15:00.000Z"
}ApiKeyCreated
Neu angelegter Schlüssel mit einmalig gezeigtem Klartext
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
name | string | ja | |
prefix | string | ja | Erste 12 Zeichen des Schlüssels. |
created_by | string (uuid) | null | ja | |
last_used_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
revoked_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
key | string | ja | Klartext des Schlüssels – wird nur dieses eine Mal angezeigt. Muster ^tb_(live|test)_[0-9A-Za-z]{32}$. |
Beispiel
json
{
"id": "d1847395-a2b4-45c6-9162-7d8e9fa0b1c2",
"name": "Warenwirtschaft",
"prefix": "tb_live_4fQ9",
"created_by": "7b2e1d3f-4c5e-4f60-9b0c-1d2e3f4a5b6c",
"last_used_at": null,
"revoked_at": null,
"created_at": "2026-11-24T08:15:00.000Z",
"key": "tb_live_4fQ9zX2mK7pL1vR8sT3nB6cY0wD5hJ9a"
}TenantSettings
Einstellungen des Mandanten
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
tenant_id | string (uuid) | ja | |
name | string | ja | Anzeigename des Mandanten. |
slug | string | ja | |
status | string | ja | Zustand des Mandanten. Werte: pending_payment, active, past_due, canceled, manual. |
map_visible_from_stops | integer | null | ja | Karte auf der Tracking-Seite erst ab den nächsten N Stopps; null = ab Tourstart. Bereich mindestens 1. |
driver_can_reorder | boolean | ja | Fahrer darf offene Stopps umsortieren. |
require_admin_mfa | boolean | ja | Zwei-Faktor für Admins Pflicht. |
recipient_app_popup | boolean | ja | Hinweis auf die Empfänger-App auf der Tracking-Seite. |
position_retention_days | integer | ja | Aufbewahrung der Positionshistorie in Tagen. Bereich 1–365. |
auto_finish_after_minutes | integer | ja | Tour automatisch beenden nach N Minuten ohne Fortschritt (erledigter Stopp). Bereich 15–1.440. |
updated_at | string (date-time) | ja |
Beispiel
json
{
"tenant_id": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Bäckerei Sonnenschein",
"slug": "baeckerei-sonnenschein",
"status": "active",
"map_visible_from_stops": null,
"driver_can_reorder": false,
"require_admin_mfa": false,
"recipient_app_popup": true,
"position_retention_days": 30,
"auto_finish_after_minutes": 120,
"updated_at": "2026-11-24T08:15:00.000Z"
}AuditLogEntry
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
actor_type | string | ja | Werte: user, api_key, system, mcp. |
actor_id | string | null | ja | |
actor_name | string | null | ja | Anzeigename (Nutzer oder Schlüsselname). |
action | string | ja | |
entity_type | string | ja | |
entity_id | string | null | ja | |
data | object | null | ja | |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"id": "26d9c8ea-f709-4a1b-a6b7-c2d3e4f5a6b7",
"actor_type": "user",
"actor_id": "7b2e1d3f-4c5e-4f60-9b0c-1d2e3f4a5b6c",
"actor_name": "Lea Admin",
"action": "stop.moved",
"entity_type": "stop",
"entity_id": "bf625173-8092-43a4-bf40-5b6c7d8e9fa0",
"data": {
"from_tour_id": null,
"to_tour_id": "ae514062-7f81-4293-ae3f-4a5b6c7d8e9f"
},
"created_at": "2026-11-24T08:15:00.000Z"
}Branding
Logo, Farben und Name des Mandanten
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
tenant_id | string (uuid) | ja | |
name | string | ja | Name des Mandanten. |
logo_url | string (uri) | null | ja | URL des Logos oder null. |
favicon_url | string (uri) | null | ja | URL des Favicons (eigenes, sonst aus Logo erzeugt; null = Tourblick-Favicon). |
primary_color | string | ja | Farbe als #RRGGBB. Muster ^#[0-9A-Fa-f]{6}$. |
accent_color | string | ja | Farbe als #RRGGBB. Muster ^#[0-9A-Fa-f]{6}$. |
show_tourblick_badge | boolean | ja | Hinweis „Tracking von Tourblick“ im Fuß. |
Beispiel
json
{
"tenant_id": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Bäckerei Sonnenschein",
"logo_url": "https://api.tourblick.de/v1/assets/6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b/logo.png",
"favicon_url": null,
"primary_color": "#0F1F3D",
"accent_color": "#F26A1B",
"show_tourblick_badge": true
}Webhook
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
url | string (uri) | ja | |
events | array<string> | ja | Werte: tour.started, stop.link_created, stop.next, stop.completed, tour.finished. Anzahl mindestens 1 Einträge. |
active | boolean | ja | |
description | string | null | ja | |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
updated_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"id": "e29584a6-b3c5-46d7-a273-8e9fa0b1c2d3",
"url": "https://shop.example.com/hooks/tourblick",
"events": [
"tour.started",
"stop.next",
"stop.completed"
],
"active": true,
"description": "Shop-Benachrichtigungen",
"created_at": "2026-11-24T08:15:00.000Z",
"updated_at": "2026-11-24T08:15:00.000Z"
}WebhookWithSecret
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
url | string (uri) | ja | |
events | array<string> | ja | Werte: tour.started, stop.link_created, stop.next, stop.completed, tour.finished. Anzahl mindestens 1 Einträge. |
active | boolean | ja | |
description | string | null | ja | |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
updated_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
secret | string | ja | Geheimnis für die Signatur – nur beim Anlegen und Erneuern sichtbar. |
Beispiel
json
{
"id": "e29584a6-b3c5-46d7-a273-8e9fa0b1c2d3",
"url": "https://shop.example.com/hooks/tourblick",
"events": [
"tour.started",
"stop.next",
"stop.completed"
],
"active": true,
"description": "Shop-Benachrichtigungen",
"created_at": "2026-11-24T08:15:00.000Z",
"updated_at": "2026-11-24T08:15:00.000Z"
}WebhookDelivery
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
webhook_id | string (uuid) | ja | |
event_id | string (uuid) | ja | |
event_type | string | ja | Werte: tour.started, stop.link_created, stop.next, stop.completed, tour.finished. |
payload | object | ja | Gesendeter Umschlag (WebhookEvent). |
status | string | ja | Werte: pending, succeeded, failed. |
attempts | integer | ja | |
next_attempt_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
last_status_code | integer | null | ja | |
last_error | string | null | ja | |
delivered_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"id": "f3a695b7-c4d6-47e8-b384-9fa0b1c2d3e4",
"webhook_id": "e29584a6-b3c5-46d7-a273-8e9fa0b1c2d3",
"event_id": "04b7a6c8-d5e7-48f9-8495-a0b1c2d3e4f5",
"event_type": "stop.next",
"payload": {},
"status": "succeeded",
"attempts": 1,
"next_attempt_at": null,
"last_status_code": 200,
"last_error": null,
"delivered_at": "2026-11-24T08:15:00.000Z",
"created_at": "2026-11-24T08:15:00.000Z"
}Domain
Eigene Domain für Tracking-Seiten
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
id | string (uuid) | ja | |
hostname | string | ja | |
status | string | ja | Werte: pending, active, failed. |
dns_records | array<object> | ja | |
dns_records[].type | string | ja | Werte: CNAME, TXT. |
dns_records[].name | string | ja | |
dns_records[].value | string | ja | |
dns_records[].status | string | ja | Werte: pending, ok, failed. |
verified_at | string (date-time) | null | ja | Zeitpunkt (ISO 8601). |
last_error | string | null | ja | |
created_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
updated_at | string (date-time) | ja | Zeitpunkt (ISO 8601). |
Beispiel
json
{
"id": "15c8b7d9-e6f8-490a-95a6-b1c2d3e4f5a6",
"hostname": "tracking.baeckerei-sonnenschein.de",
"status": "pending",
"dns_records": [
{
"type": "CNAME",
"name": "tracking.baeckerei-sonnenschein.de",
"value": "custom.tourblick.de",
"status": "pending"
}
],
"verified_at": null,
"last_error": null,
"created_at": "2026-11-24T08:15:00.000Z",
"updated_at": "2026-11-24T08:15:00.000Z"
}Usage
Verbrauch des Mandanten im Monat
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
period | string | ja | |
metrics | object | ja | |
metrics.stops | object | ja | |
metrics.tracking_views | object | ja | |
metrics.active_drivers | object | ja | |
metrics.geocodes | object | ja | |
metrics.optimizations | object | ja | |
over_limit | boolean | ja | Fair-Use-Grenze überschritten (es wird nichts gesperrt). |
Beispiel
json
{
"period": "2026-11",
"metrics": {
"stops": {
"value": 1234,
"limit": 5000
},
"tracking_views": {
"value": 4321,
"limit": null
},
"active_drivers": {
"value": 6,
"limit": null
},
"geocodes": {
"value": 1301,
"limit": null
},
"optimizations": {
"value": 48,
"limit": null
}
},
"over_limit": false
}Error
Einheitliches Fehlerformat
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
error | object | ja | |
error.code | string | ja | Maschinenlesbarer Fehlercode. Werte: bad_request, validation_failed, unauthorized, forbidden, not_found, conflict, rate_limited, locked, payment_required, internal. |
error.message | string | ja | Fehlermeldung (deutsch). |
error.details | any | – | Zusätzliche Angaben, z. B. Feldfehler bei validation_failed. |
error.request_id | string | ja |
Beispiel
json
{
"error": {
"code": "not_found",
"message": "Tour nicht gefunden",
"request_id": "req_01JDX4T7K9"
}
}