REST API: Logs and diagnostics
This page belongs to the REST API reference, which covers the address, authentication, scopes, pagination and errors. Every path is appended to https://api.litelog.de/api. In the examples $KEY stands for your API key; the example values are made up.
Overview
| Call | Purpose | Scope |
|---|---|---|
GET /v1/change-requests |
Requests of the change approval (archive, restore, correction, configuration) | audit:read |
GET /v1/config-changes |
Change history of the settings (who changed what, when) | audit:read |
GET /v1/devices |
Registered devices of the tenant (support view) | devices:read |
GET /v1/session-log |
Sign-in log (logins, failures, device switches, locks) | audit:read |
GET /v1/diagnostics/events |
Diagnostic events reported by the app (NFC write results, read errors, unknown chips) | devices:read |
GET /v1/sync-failures |
Offline-sync rejections per device (parked, dropped, suspect, failed bookings) | devices:read |
GET /v1/notifications |
Delivery attempts of e-mail, SMS, calls, push and in-app messages | audit:read |
GET /v1/change-requests
Change-approval requests (status, default pending; kind, mine, from/to): approvers see all, requesters only their own — the names of the changed fields only, never values. Deciding stays in the portal.
Scope: audit:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
status |
query | string | no | Values: pending, approved, rejected; Default: pending. |
mine |
query | boolean | no | — |
kind |
query | string | no | Values: archive, restore, amend, correct, config. |
from |
query | string (date) | no | — |
to |
query | string (date) | no | — |
Example call
curl "https://api.litelog.de/api/v1/change-requests?status=approved&from=2026-12-01&to=2026-12-31" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"batch_id": "9d3a7f52-6b1c-4e80-a2f4-5c8e1b7d9036",
"kind": "config",
"entity_type": "task_schedule",
"status": "approved",
"count": 1,
"reason": "[customer_request] Kunde wünscht die Unterhaltsreinigung zusätzlich am Samstag",
"entity_label": "Aufgaben-Rhythmus ab 14.12.2026 (wöchentlich)",
"changed_fields": [
"weekdays"
],
"requested_by_name": "Erika Musterfrau",
"decided_by_name": "Max Mustermann",
"decision_note": "Mit dem Kunden abgestimmt",
"created_at": "2026-12-03T09:12:00.000Z",
"decided_at": "2026-12-03T11:40:00.000Z"
},
{
"batch_id": "41c8e2b7-0f5d-4a36-b9e1-7a2d6c3f8e54",
"kind": "archive",
"entity_type": "form_response",
"status": "approved",
"count": 3,
"reason": "Doppelt erfasste Berichte vom 30.11.",
"entity_label": null,
"changed_fields": [],
"requested_by_name": "Erika Musterfrau",
"decided_by_name": "Max Mustermann",
"decision_note": null,
"created_at": "2026-12-01T08:15:00.000Z",
"decided_at": "2026-12-01T10:02:00.000Z"
}
],
"total": 2,
"page": 1,
"pageSize": 50
}
GET /v1/config-changes
Change history of the settings (entity_type, entity_id, property_id): who changed which fields when. Old and new values, the change reason and the username only with include=values (changes[{field, old, new}], change_reason, actor_username). Property-restricted keys must pass property_id (403, reason: PROPERTY_REQUIRED).
Scope: audit:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
property_id |
query | integer | no | — |
entity_type |
query | string | no | — |
entity_id |
query | string | no | Only entries of this record (id within entity_type). At most 64 characters. |
include |
query | string | no | values: add changes[{field, old, new}], change_reason, actor_username, initial_creation. Values: values. |
Example call
curl "https://api.litelog.de/api/v1/config-changes?entity_type=webhook_subscription&include=values" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"id": 58231,
"created_at": "2026-12-02T14:05:00.000Z",
"entity_type": "webhook_subscription",
"entity_id": "b84d1f6a-2c3e-4a59-8d70-1e9f5c7a3b26",
"event": "updated",
"actor_name": "Max Mustermann",
"actor_role_name": "Administrator",
"actor_role_type": "admin",
"property_id": null,
"property_name": null,
"entity_name": "Zeiterfassung Lohnbüro",
"changed_fields": [
"status"
],
"changes": [
{
"field": "status",
"old": "active",
"new": "paused"
}
],
"change_reason": "[other] Wartungsfenster beim Lohnbüro",
"actor_username": "max.mustermann",
"initial_creation": false
},
{
"id": 58102,
"created_at": "2026-12-02T09:00:00.000Z",
"entity_type": "webhook_subscription",
"entity_id": "b84d1f6a-2c3e-4a59-8d70-1e9f5c7a3b26",
"event": "created",
"actor_name": "Max Mustermann",
"actor_role_name": "Administrator",
"actor_role_type": "admin",
"property_id": null,
"property_name": null,
"entity_name": "Zeiterfassung Lohnbüro",
"changed_fields": [
"name",
"events"
],
"changes": [
{
"field": "name",
"old": null,
"new": "Zeiterfassung Lohnbüro"
},
{
"field": "events",
"old": null,
"new": [
"time_entry.started",
"time_entry.stopped"
]
}
],
"change_reason": null,
"actor_username": "max.mustermann",
"initial_creation": true
}
],
"total": 2,
"page": 1,
"pageSize": 50
}
GET /v1/devices
Devices that ever signed in with the app (search, account_id, property_id, status): manufacturer, model, OS (os), app version, last use, last active account, properties — newest use first. Property-restricted keys only see devices of their properties. For support: “which phone, which app version?”.
Scope: devices:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
search |
query | string | no | Substring match on unique_id, name, app_version, manufacturer, model, device_name and os. At most 200 characters. |
account_id |
query | integer | no | Only devices whose last active account is this one. |
property_id |
query | integer | no | Only devices assigned to this property (intersected with the key's property restriction). |
status |
query | string | no | Values: active, maintenance, defective. |
Example call
curl "https://api.litelog.de/api/v1/devices?property_id=123&status=active" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"device_id": 311,
"unique_id": "a1b2c3d4e5f60718",
"name": "Diensthandy Nord 1",
"manufacturer": "samsung",
"model": "SM-A165F",
"os": "Android",
"device_name": "Galaxy A16",
"app_version": "4.1.21",
"status": "active",
"last_used_at": "2026-12-01T08:15:00.000Z",
"registered_at": "2026-10-28T13:00:00.000Z",
"last_account_id": 41,
"last_account_name": "Erika Musterfrau",
"property_ids": [
123
],
"relation": "global",
"locked_at": null
},
{
"device_id": 298,
"unique_id": "5F0C2A3E-8B1D-4E6F-9A7C-2D4B6E8F0A1C",
"name": "Diensthandy Objektleitung",
"manufacturer": "Apple",
"model": "iPhone15,4",
"os": "iOS",
"device_name": "iPhone 15",
"app_version": "4.1.21",
"status": "active",
"last_used_at": "2026-11-30T16:42:10.000Z",
"registered_at": "2026-09-14T07:30:00.000Z",
"last_account_id": 42,
"last_account_name": "Max Mustermann",
"property_ids": [
123
],
"relation": "global",
"locked_at": null
}
],
"total": 2,
"page": 1,
"pageSize": 50
}
GET /v1/session-log
Sign-in log (account_id, device_id, event as a list, from/to): logins, failed logins, logouts, property changes, device registration and account switches on a device, locks, MFA, admin logins and API-key access — with device, user agent and IP; includes rows without an account. Range defaults to 7 days, at most 31 (422, reason: RANGE_TOO_LARGE). Only keys on an account that sees all properties (403, reason: GLOBAL_ACCOUNT_REQUIRED).
Scope: audit:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
account_id |
query | integer | no | — |
device_id |
query | integer | no | A device_id from GET /v1/devices. |
event |
query | string | no | Comma-separated list (max 10) of event names, e.g. login,login_failed,device_registered; unknown names ⇒ 422. At most 400 characters. |
from |
query | string (date-time) | no | — |
to |
query | string (date-time) | no | — |
Example call
curl "https://api.litelog.de/api/v1/session-log?event=login,login_failed&from=2026-12-01T00:00:00Z&to=2026-12-08T00:00:00Z" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"id": "481203",
"occurred_at": "2026-12-01T06:02:11.000Z",
"event": "login",
"account_id": 41,
"actor_name": "Erika Musterfrau",
"actor_username": "erika.musterfrau",
"actor_role_type": "securityemployee",
"login_method": "password",
"failure_reason": null,
"device_id": 311,
"device_unique_id": "a1b2c3d4e5f60718",
"device_name": "Diensthandy Nord 1",
"ip": "203.0.113.24",
"user_agent": "samsung / Galaxy A16 / SM-A165F",
"old_property_id": null,
"new_property_id": 123,
"surface": "app"
},
{
"id": "481198",
"occurred_at": "2026-12-01T06:01:40.000Z",
"event": "login_failed",
"account_id": 41,
"actor_name": "Erika Musterfrau",
"actor_username": "erika.musterfrau",
"actor_role_type": "securityemployee",
"login_method": "password",
"failure_reason": "wrong_password",
"device_id": 311,
"device_unique_id": "a1b2c3d4e5f60718",
"device_name": "Diensthandy Nord 1",
"ip": "203.0.113.24",
"user_agent": "samsung / Galaxy A16 / SM-A165F",
"old_property_id": null,
"new_property_id": null,
"surface": "app"
}
],
"total": 2,
"page": 1,
"pageSize": 50,
"from": "2026-12-01T00:00:00.000Z",
"to": "2026-12-08T00:00:00.000Z"
}
GET /v1/diagnostics/events
Diagnostic events reported by the app (kind, account_id, device_id, chip_id, from/to): the result of every chip write with the last step reached (nfc_write: WRITE_OK, ABORT_INCOMPLETE … / tech_connect … lock), iOS read errors (nfc_read_error), unknown chips (scan_unknown_chip), the chip binding (chip_bind) and, from the next app version, image_load_failed, socket_ack_rejected, outbox_dead_letter and push_navigation_mismatch — with device, platform, OS version, app version, chip id, duration and meta. Only from app versions that report (4.1.21 and later); kept 90 days. Only keys on an account that sees all properties (403, reason: GLOBAL_ACCOUNT_REQUIRED).
Scope: devices:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
kind |
query | string | no | Values: nfc_write, nfc_read_error, scan_unknown_chip, chip_bind. |
account_id |
query | integer | no | — |
device_id |
query | integer | no | A device_id from GET /v1/devices. |
chip_id |
query | string | no | Chip UID as the app reports it (e.g. 041BFB7A531E91). At most 64 characters. |
from |
query | string (date-time) | no | — |
to |
query | string (date-time) | no | — |
Example call
curl "https://api.litelog.de/api/v1/diagnostics/events?device_id=311&from=2026-12-01T00:00:00Z&to=2026-12-08T00:00:00Z" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"id": "20418",
"received_at": "2026-12-01T08:15:01.000Z",
"client_ts": "2026-12-01T08:15:00.000Z",
"kind": "nfc_write",
"outcome": "ABORT_INCOMPLETE",
"step": "verify",
"account_id": 41,
"device_id": 311,
"device_unique_id": "a1b2c3d4e5f60718",
"platform": "android",
"os_version": "14",
"app_version": "4.1.21",
"chip_id": "041BFB7A531E91",
"target_type": null,
"target_id": null,
"error": null,
"duration_ms": 900,
"meta": {
"matchedTech": "Ndef",
"ndefWritable": true,
"writeThrew": false,
"verifyFailed": true,
"liteLogTag": false
}
},
{
"id": "20397",
"received_at": "2026-12-01T07:48:13.000Z",
"client_ts": "2026-12-01T07:48:12.000Z",
"kind": "scan_unknown_chip",
"outcome": "not_found",
"step": null,
"account_id": 41,
"device_id": 311,
"device_unique_id": "a1b2c3d4e5f60718",
"platform": "android",
"os_version": "14",
"app_version": "4.1.21",
"chip_id": "04A2C91B6F5D80",
"target_type": null,
"target_id": null,
"error": null,
"duration_ms": 412,
"meta": {
"source": "nfc"
}
}
],
"total": 2,
"page": 1,
"pageSize": 50,
"from": "2026-12-01T00:00:00.000Z",
"to": "2026-12-08T00:00:00.000Z"
}
GET /v1/sync-failures
Sync failures per device (device_id, device_unique_id, account_id, outcome, entity, status, from/to): offline data the server parked, dropped or flagged as replay (parked, acked_dropped, replay_suspect with reason) and bookings it could not store at all (error, with target table, status and retry count). detail is a short message, never payload or stack. Successful syncs are not logged. Only keys on an account that sees all properties (403, reason: GLOBAL_ACCOUNT_REQUIRED). For support: “why does this phone's data not arrive?”.
Scope: devices:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
device_id |
query | integer | no | A device_id from GET /v1/devices (resolved to the phone id within the tenant). |
device_unique_id |
query | string | no | Phone id as reported by the app. At most 128 characters. |
account_id |
query | integer | no | Ingest rows only (failed bookings carry no account). |
outcome |
query | string | no | Values: parked, acked_dropped, replay_suspect, error. |
entity |
query | string | no | Sync entity (e.g. work_time, routes_logs_tags) or target table of a failed booking. At most 40 characters. |
status |
query | string | no | Failed bookings only. Values: PENDING, HOLD, DONE. |
from |
query | string (date-time) | no | — |
to |
query | string (date-time) | no | — |
Example call
curl "https://api.litelog.de/api/v1/sync-failures?device_id=311&from=2026-12-01T00:00:00Z&to=2026-12-08T00:00:00Z" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"id": "ingest:18842",
"occurred_at": "2026-12-01T08:16:30.000Z",
"source": "ingest",
"device_unique_id": "a1b2c3d4e5f60718",
"device_id": 311,
"account_id": 41,
"sync_path": "v3",
"entity": "work_time",
"action": null,
"outcome": "parked",
"reason": "invalid_schema",
"detail": "start_ts: Required",
"status": null,
"retry_count": null,
"done_at": null,
"client_uuid": "e7a1c4d2-93b5-4f68-8a0e-2b6d9f1c5e73",
"client_ts": "2026-12-01T08:15:00.000Z"
},
{
"id": "failed:9917",
"occurred_at": "2026-12-01T06:40:12.000Z",
"source": "failed_sync",
"device_unique_id": "a1b2c3d4e5f60718",
"device_id": 311,
"account_id": null,
"sync_path": null,
"entity": "routes_logs_tags",
"action": "INSERT",
"outcome": "error",
"reason": null,
"detail": "duplicate key value violates unique constraint",
"status": "PENDING",
"retry_count": 3,
"done_at": null,
"client_uuid": null,
"client_ts": null
}
],
"total": 2,
"page": 1,
"pageSize": 50,
"from": "2026-12-01T00:00:00.000Z",
"to": "2026-12-08T00:00:00.000Z"
}
GET /v1/notifications
Delivery attempts (channel, status, source, property_id, recipient, from/to): every attempt to deliver e-mail, SMS, call, push or in-app — from the mail log, automation, attendance alarms and lone-worker check-ins. Recipients always masked (j***@firma.de), push tokens null; error_summary is a redacted one-line provider error, never a stack. recipient is the exact address or number, matched server-side and never echoed. Mail log keeps 21 days; push rows carry the tenant from late October 2026 on. Only keys on an account that sees all properties (403, reason: GLOBAL_ACCOUNT_REQUIRED). For support: “why did the mail / SMS / push not arrive?”.
Scope: audit:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
channel |
query | string | no | Values: email, sms, call, push, in_app. |
status |
query | string | no | Values: sent, failed, blocked, pending, fallback, dead_letter, unknown_state, no_device. |
source |
query | string | no | Values: mail, workflow, attendance, lone_worker. |
property_id |
query | integer | no | Only sources that carry a property (attendance, lone_worker). |
recipient |
query | string | no | Exact e-mail address or phone number as stored; matched server-side, never echoed back. At most 320 characters. |
from |
query | string (date-time) | no | — |
to |
query | string (date-time) | no | — |
Example call
curl "https://api.litelog.de/api/v1/notifications?channel=email&from=2026-12-01T00:00:00Z&to=2026-12-08T00:00:00Z" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"id": "mail:77120",
"occurred_at": "2026-12-02T07:30:05.000Z",
"sent_at": null,
"channel": "email",
"source": "mail",
"recipient_masked": "j***@example.com",
"status": "failed",
"error_summary": "550 5.1.1 <j***@example.com>: mailbox unavailable",
"fallback_reason": null,
"subject": "Zugang einrichten",
"template": "invite-link",
"notification_type": null,
"dedup_key": null,
"node_id": null,
"stage": null,
"account_id": null,
"property_id": null
},
{
"id": "att:5512",
"occurred_at": "2026-12-01T06:20:00.000Z",
"sent_at": "2026-12-01T06:20:03.000Z",
"channel": "email",
"source": "attendance",
"recipient_masked": "o***@example.com",
"status": "sent",
"error_summary": null,
"fallback_reason": null,
"subject": null,
"template": null,
"notification_type": "requirement_failed",
"dedup_key": null,
"node_id": null,
"stage": null,
"account_id": null,
"property_id": 123
}
],
"total": 2,
"page": 1,
"pageSize": 50,
"from": "2026-12-01T00:00:00.000Z",
"to": "2026-12-08T00:00:00.000Z"
}
