Darstellung
Protokoll
Änderungsprotokoll.
| Endpunkt | Anfrage |
|---|---|
| Änderungsprotokoll | GET /v1/audit-log |
Änderungsprotokoll (wer hat was wann geändert) GET
http
GET /v1/audit-logAnmeldung: API-Schlüssel oder Sitzung eines Admins (mehr)
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
limit | Query | integer | – | Anzahl Einträge (Standard 50, höchstens 500). Bereich 1–500. |
cursor | Query | string | – | Cursor aus next_cursor der vorigen Seite. Länge mindestens 1 Zeichen. |
entity_type | Query | string | – | |
entity_id | Query | string | – | |
actor_type | Query | string | – | Werte: user, api_key, system, mcp. |
actor_id | Query | string | – | |
from | Query | string (date-time) | – | Zeitpunkt (ISO 8601). |
to | Query | string (date-time) | – | Zeitpunkt (ISO 8601). |
Beispiel
bash
curl -sS --fail-with-body "https://api.tourblick.de/v1/audit-log?entity_type=tour&limit=20" \
-H "Authorization: Bearer $TOURBLICK_API_KEY"js
const res = await fetch('https://api.tourblick.de/v1/audit-log?entity_type=tour&limit=20', {
headers: {
Authorization: `Bearer ${process.env.TOURBLICK_API_KEY}`,
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
const auditLogPage = await res.json();
console.log(auditLogPage);Antwort
200 Erfolgreich · Liste von AuditLogEntry (data, next_cursor)
json
{
"data": [
{
"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"
}
],
"next_cursor": null
}Fehler
| Status | Code | Bedeutung |
|---|---|---|
| 401 | unauthorized | Nicht angemeldet |
| 403 | forbidden | Keine Berechtigung |
| 422 | validation_failed | Eingabe ungültig |
| 429 | rate_limited | Zu viele Anfragen |
| sonst | internal | Fehler (Format siehe Error) |
Format und Codes: Fehler.