LiteLogDocs
English

REST API: Forms

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/form-responses List form responses ("cleaning checklist submitted" polling) form_responses:read
GET /v1/form-responses/open-defects Open defects reported in submitted forms form_responses:read
GET /v1/form-responses/compare Compare two submitted form responses (e.g. move-in vs. move-out) form_responses:read
GET /v1/form-responses/{id} Form response detail (answers + presigned media URLs) form_responses:read
GET /v1/form-templates List form templates (checklists) form_templates:read
POST /v1/form-templates Create a form template form_templates:write
GET /v1/form-templates/{id} Get a form template with all its fields form_templates:read
PATCH /v1/form-templates/{id} Update a form template form_templates:write
POST /v1/form-templates/{id}/status Switch template status (draft / active / archived) form_templates:write
POST /v1/form-templates/catalog/import Import curated catalog templates (as drafts) form_templates:write

GET /v1/form-responses

List form responses (filters: status, property_id, template_id, has_defect).

Scope: form_responses:read

Parameters

Name In Type Required Description
page query integer no Default: 1; at least 1.
pageSize query integer no Default: 50; 1 – 100.
template_id query string (uuid) no —
property_id query integer no —
status query string no Values: draft, submitted.
has_defect query boolean no —

Example call

curl "https://api.litelog.de/api/v1/form-responses?property_id=124&status=submitted&pageSize=10" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "id": "48d1f6a3-0e7b-4c29-9a5d-b2c8e4f71a06",
      "template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "property_id": 124,
      "status": "submitted",
      "has_defect": false,
      "submitted_at": "2026-12-02T10:15:00.000Z",
      "created_at": "2026-12-02T10:15:02.731Z"
    },
    {
      "id": "b3d9a1c2-5e7f-4a86-8d04-1f6c2e9a7b50",
      "template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "property_id": 124,
      "status": "submitted",
      "has_defect": true,
      "submitted_at": "2026-12-01T10:42:00.000Z",
      "created_at": "2026-12-01T10:42:03.412Z"
    }
  ],
  "total": 2,
  "page": 1,
  "pageSize": 10
}

GET /v1/form-responses/open-defects

Open defects from submitted forms, newest first (within_days, default 90; property_id, template_id) — field label, value, template and property, without field ids and photos.

Scope: form_responses: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 —
within_days query integer no Default: 90; 1 – 365.
template_id query string (uuid) no —

Example call

curl "https://api.litelog.de/api/v1/form-responses/open-defects?within_days=30&pageSize=50" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "source_response_id": "9d3b6f20-4a1e-4c7d-8b52-e0f1a3c5d7b9",
      "template_id": "c1a5e8f2-3b7d-4069-a4e2-6f9b0d1c8e35",
      "template_name": "Housekeeping-Abnahme",
      "property_id": 123,
      "captured_at": "2026-12-02T16:05:00.000Z",
      "label": "Boden im Eingangsbereich",
      "value": "defect",
      "signal_type": "defect"
    },
    {
      "source_response_id": "b3d9a1c2-5e7f-4a86-8d04-1f6c2e9a7b50",
      "template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "template_name": "Endreinigung Checkliste",
      "property_id": 124,
      "captured_at": "2026-12-01T10:42:00.000Z",
      "label": "Bad gereinigt",
      "value": "defect",
      "signal_type": "defect"
    }
  ],
  "total": 2,
  "page": 1,
  "pageSize": 50
}

GET /v1/form-responses/compare

Compare two submitted responses (a, b; the older one is always left): both values per field with a verdict (new, preexisting, fixed, changed, unchanged, not_rated) — without photos, signatures and location data.

Scope: form_responses:read

Parameters

Name In Type Required Description
a query string (uuid) yes —
b query string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/form-responses/compare?a=0a4e7c15-9b2d-4c63-a8f1-3d5b7e902c18&b=e6f2b8d4-1c3a-4975-b0e9-8a7d5c4f2b61" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": {
    "left": {
      "id": "0a4e7c15-9b2d-4c63-a8f1-3d5b7e902c18",
      "template_id": "2f1d4c8a-6b3e-4f7a-9c21-5d8e0a7b3c46",
      "template_name": "Übergabeprotokoll Wohnung",
      "template_version": 1,
      "property_id": 124,
      "property_name": "Haus Seeblick — Wohnung 3",
      "submitted_at": "2026-12-01T15:00:00.000Z",
      "has_defect": true,
      "account_name": "Max Mustermann"
    },
    "right": {
      "id": "e6f2b8d4-1c3a-4975-b0e9-8a7d5c4f2b61",
      "template_id": "2f1d4c8a-6b3e-4f7a-9c21-5d8e0a7b3c46",
      "template_name": "Übergabeprotokoll Wohnung",
      "template_version": 1,
      "property_id": 124,
      "property_name": "Haus Seeblick — Wohnung 3",
      "submitted_at": "2026-12-15T10:30:00.000Z",
      "has_defect": true,
      "account_name": "Max Mustermann"
    },
    "same_template": true,
    "differences": [
      {
        "field_id": "f_boden",
        "label": "Boden Wohnzimmer",
        "type": "ok_defect",
        "left": {
          "value": "ok",
          "note": null
        },
        "right": {
          "value": "defect",
          "note": "Kratzer im Parkett vor dem Fenster"
        },
        "verdict": "new",
        "delta": null
      },
      {
        "field_id": "f_fenster",
        "label": "Fenster und Rahmen",
        "type": "ok_defect",
        "left": {
          "value": "defect",
          "note": "Fenstergriff locker"
        },
        "right": {
          "value": "ok",
          "note": null
        },
        "verdict": "fixed",
        "delta": null
      },
      {
        "field_id": "f_zaehler_strom",
        "label": "Zählerstand Strom (kWh)",
        "type": "number",
        "left": {
          "value": 15230,
          "note": null
        },
        "right": {
          "value": 15418,
          "note": null
        },
        "verdict": "changed",
        "delta": 188
      }
    ],
    "unmatched": [],
    "summary": {
      "new": 1,
      "preexisting": 0,
      "fixed": 1,
      "unchanged": 1,
      "changed": 1,
      "notRated": 0
    }
  }
}

Excerpt: the response carries more fields. The OpenAPI file lists them all.

GET /v1/form-responses/{id}

Response detail including time-limited photo links.

Scope: form_responses:read

Parameters

Name In Type Required Description
id path string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/form-responses/b3d9a1c2-5e7f-4a86-8d04-1f6c2e9a7b50" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": {
    "id": "b3d9a1c2-5e7f-4a86-8d04-1f6c2e9a7b50",
    "client_uuid": "91c7e3a5-4f2b-4d06-b8a9-0c5e7d3f1b62",
    "template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "template_version": 1,
    "schema_snapshot": [
      {
        "id": "f_kueche",
        "type": "ok_defect",
        "label": {
          "de": "Küche gereinigt"
        },
        "required": true,
        "requireOnDefect": {
          "note": true
        },
        "allowNa": false
      }
    ],
    "user_id": 284,
    "account_id": 41,
    "property_id": 124,
    "tag_id": 311,
    "data": {
      "f_kueche": "ok",
      "f_bad": "defect",
      "f_bad::note": "Silikonfuge an der Dusche ist verschimmelt.",
      "f_bad::photo": [
        "pending/41-8e2f4a6c-1b3d-4e5f-9a7b-0c2d4e6f8a1b.jpg"
      ],
      "f_bemerkung": "Handtücher und Bettwäsche gewechselt."
    },
    "has_defect": true,
    "status": "submitted",
    "submitted_at": "2026-12-01T10:42:00.000Z",
    "review_status": null,
    "received_at": "2026-12-01T10:42:03.412Z",
    "client_created_at": "2026-12-01T10:41:52.000Z",
    "bridge_outcome": "completed",
    "device_time_status": null,
    "created_at": "2026-12-01T10:42:03.412Z",
    "updated_at": "2026-12-01T10:42:03.412Z",
    "media": {
      "photos": [
        "https://files.example.com/pending/41-8e2f4a6c-1b3d-4e5f-9a7b-0c2d4e6f8a1b.jpg?X-Amz-Expires=900&X-Amz-Signature=…"
      ],
      "photo_keys": [
        "pending/41-8e2f4a6c-1b3d-4e5f-9a7b-0c2d4e6f8a1b.jpg"
      ],
      "photo_sources": [
        "camera"
      ],
      "videos": [],
      "signatures": [],
      "signature_fields": []
    },
    "account_name": "Erika Musterfrau",
    "property_name": "Haus Seeblick — Wohnung 3",
    "template_name": "Endreinigung Checkliste",
    "linked_task": null,
    "checkpoint_name": "Wohnung 3 – Eingang",
    "signature": {
      "status": "signed",
      "signer_name": "Erika Musterfrau",
      "signer_username": "erika.musterfrau",
      "signer_role": "Reinigungskraft",
      "meaning": "submission",
      "signed_at": "2026-12-01T10:41:58.000Z",
      "received_at": "2026-12-01T10:42:03.412Z",
      "method": "pin",
      "hash": "9f2c4e6a8b0d1f3a5c7e9b1d3f5a7c9e0b2d4f6a8c0e1a3b5d7f9c1e3a5b7d9f",
      "hash_version": 2,
      "failure_reason": null
    },
    "task_completions": [
      {
        "completion_id": "c4e9a2f7-3b61-4d8c-a5f0-7e2b9c1d6a48",
        "task_uuid": "6e0b3d5f-9a17-4c82-b4d6-1f8a2c7e5d93",
        "task_title": "Endreinigung Wohnung 3",
        "occurrence_date": "2026-12-01",
        "completed_at": "2026-12-01T10:42:00.000Z",
        "completed_without_scan": false,
        "cancelled": false
      }
    ],
    "proof_invalid": false,
    "proof_reason": null,
    "completion_missing": null
  }
}

Excerpt: the response carries more fields. The OpenAPI file lists them all.

GET /v1/form-templates

List form templates (checklists).

List / create form templates (same shape as the template editor); status draft (default) or active — activating counts against the quota. template_kind checklist marks the background template of a task checklist; usually POST /v1/tasks or PUT /v1/tasks/{id}/checklist creates it for you.

Scope: form_templates: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: draft, active, archived.

Example call

curl "https://api.litelog.de/api/v1/form-templates?status=active&page=1&pageSize=2" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "name": "Endreinigung Checkliste",
      "description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
      "status": "active",
      "is_published": true,
      "is_default": false,
      "template_kind": "user",
      "scope": "property",
      "assignment": {
        "property_ids": [
          124
        ]
      },
      "default_category_id": null,
      "category_field_id": null,
      "reaction_rule_id": null,
      "default_priority": "medium",
      "icon": null,
      "accent_color": null,
      "requires_signature": false,
      "requires_review": false,
      "esignature_mode": null,
      "scoring_enabled": false,
      "pass_threshold": null,
      "version": 1,
      "updated_at": "2026-12-01T07:50:12.306Z",
      "field_count": 3,
      "field_types": [
        "long_text",
        "ok_defect"
      ],
      "task_count": 1
    },
    {
      "id": "c1a5e8f2-3b7d-4069-a4e2-6f9b0d1c8e35",
      "name": "Housekeeping-Abnahme",
      "description": "Abnahme der Reinigung und Freigabe der Wohnung vor jeder Übergabe.",
      "status": "active",
      "is_published": true,
      "is_default": false,
      "template_kind": "user",
      "scope": "standalone",
      "assignment": null,
      "default_category_id": null,
      "category_field_id": null,
      "reaction_rule_id": null,
      "default_priority": null,
      "icon": null,
      "accent_color": null,
      "requires_signature": true,
      "requires_review": false,
      "esignature_mode": null,
      "scoring_enabled": false,
      "pass_threshold": null,
      "version": 1,
      "updated_at": "2026-12-01T07:20:44.915Z",
      "field_count": 49,
      "field_types": [
        "long_text",
        "ok_defect",
        "photo",
        "section_header",
        "signature"
      ],
      "task_count": 0
    }
  ],
  "total": 3,
  "page": 1,
  "pageSize": 2
}

POST /v1/form-templates

Create a form template.

List / create form templates (same shape as the template editor); status draft (default) or active — activating counts against the quota. template_kind checklist marks the background template of a task checklist; usually POST /v1/tasks or PUT /v1/tasks/{id}/checklist creates it for you.

Scope: form_templates:write

Body fields (JSON)

Field Type Required Description
name string yes At most 200 characters.
template_kind string no Immutable after creation. Values: user, checklist.
description string or null no —
schema array (object) yes —
scope string no Omitted with a non-empty assignment.property_ids ⇒ the template is saved with scope property (as the MCP tool create_form_template). standalone or route together with property_ids is rejected with 400 invalid_schema (the ids would have no effect at runtime); tag may carry property_ids (they restrict the tag scan to those properties). Values: standalone, property, tag, route.
assignment object or null no { property_ids?, route_ids?, tag_types?, worktime_events? }. property_ids without scope sets the scope to property; scope: standalone/route together with property_ids answers 400 invalid_schema. Every id must belong to the tenant (400 invalid_schema otherwise).
status string no Lifecycle state at creation; default draft. active counts against the form_templates quota (403 when exhausted). Values: draft, active.

Example call

curl -X POST "https://api.litelog.de/api/v1/form-templates" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "name": "Endreinigung Checkliste",
  "description": "Checkliste für die Endreinigung einer Ferienwohnung nach Abreise.",
  "schema": [
    {
      "id": "f_kueche",
      "type": "ok_defect",
      "label": {
        "de": "Küche gereinigt"
      },
      "required": true,
      "requireOnDefect": {
        "note": true
      }
    },
    {
      "id": "f_bad",
      "type": "ok_defect",
      "label": {
        "de": "Bad gereinigt"
      },
      "required": true,
      "requireOnDefect": {
        "note": true
      }
    },
    {
      "id": "f_bemerkung",
      "type": "long_text",
      "label": {
        "de": "Bemerkung"
      }
    }
  ],
  "assignment": {
    "property_ids": [
      124
    ]
  }
}'

Example response (201)

{
  "data": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "Endreinigung Checkliste",
    "description": "Checkliste für die Endreinigung einer Ferienwohnung nach Abreise.",
    "schema": [
      {
        "id": "f_kueche",
        "type": "ok_defect",
        "label": {
          "de": "Küche gereinigt"
        },
        "required": true,
        "requireOnDefect": {
          "note": true
        },
        "allowNa": false
      },
      {
        "id": "f_bad",
        "type": "ok_defect",
        "label": {
          "de": "Bad gereinigt"
        },
        "required": true,
        "requireOnDefect": {
          "note": true
        },
        "allowNa": false
      },
      {
        "id": "f_bemerkung",
        "type": "long_text",
        "label": {
          "de": "Bemerkung"
        }
      }
    ],
    "scope": "property",
    "assignment": {
      "property_ids": [
        124
      ]
    },
    "icon": null,
    "accent_color": null,
    "default_priority": null,
    "template_kind": "user",
    "version": 1,
    "status": "draft",
    "is_published": false,
    "is_default": false,
    "requires_signature": false,
    "esignature_mode": null,
    "requires_review": false,
    "scoring_enabled": false,
    "pass_threshold": null,
    "created_at": "2026-12-01T07:30:04.118Z",
    "updated_at": "2026-12-01T07:30:04.118Z"
  }
}

Excerpt: the response carries more fields. The OpenAPI file lists them all.

GET /v1/form-templates/{id}

Returns the template with every field, its type and its options.

Scope: form_templates:read

Parameters

Name In Type Required Description
id path string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/form-templates/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "form_template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "Endreinigung Checkliste",
    "description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
    "status": "active",
    "template_kind": "user",
    "is_system": false,
    "scope": "property",
    "property_ids": [
      124
    ],
    "property_names": [
      "Haus Seeblick — Wohnung 3"
    ],
    "requires_signature": false,
    "requires_review": false,
    "esignature_mode": null,
    "scoring_enabled": false,
    "pass_threshold": null,
    "default_priority": "medium",
    "icon": null,
    "accent_color": null,
    "version": 1,
    "field_count": 3,
    "fields": [
      {
        "id": "f_kueche",
        "type": "ok_defect",
        "label": {
          "de": "Küche gereinigt"
        },
        "required": true,
        "requireOnDefect": {
          "note": true
        },
        "allowNa": false
      },
      {
        "id": "f_bad",
        "type": "ok_defect",
        "label": {
          "de": "Bad gereinigt"
        },
        "required": true,
        "requireOnDefect": {
          "note": true
        },
        "allowNa": false
      },
      {
        "id": "f_bemerkung",
        "type": "long_text",
        "label": {
          "de": "Bemerkung"
        }
      }
    ],
    "updated_at": "2026-12-01T07:50:12.306Z"
  }
}

PATCH /v1/form-templates/{id}

Update a form template.

Update a template / switch between draft, active and archived.

Scope: form_templates:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

The example shows the structure of the body.

Example call

curl -X PATCH "https://api.litelog.de/api/v1/form-templates/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
  "default_priority": "medium"
}'

Example response (200)

{
  "data": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "Endreinigung Checkliste",
    "description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
    "schema": [
      {
        "id": "f_kueche",
        "type": "ok_defect",
        "label": {
          "de": "Küche gereinigt"
        },
        "required": true,
        "requireOnDefect": {
          "note": true
        },
        "allowNa": false
      },
      {
        "id": "f_bad",
        "type": "ok_defect",
        "label": {
          "de": "Bad gereinigt"
        },
        "required": true,
        "requireOnDefect": {
          "note": true
        },
        "allowNa": false
      },
      {
        "id": "f_bemerkung",
        "type": "long_text",
        "label": {
          "de": "Bemerkung"
        }
      }
    ],
    "scope": "property",
    "assignment": {
      "property_ids": [
        124
      ]
    },
    "icon": null,
    "accent_color": null,
    "default_priority": "medium",
    "template_kind": "user",
    "version": 1,
    "status": "draft",
    "is_published": false,
    "is_default": false,
    "requires_signature": false,
    "esignature_mode": null,
    "requires_review": false,
    "scoring_enabled": false,
    "pass_threshold": null,
    "created_at": "2026-12-01T07:30:04.118Z",
    "updated_at": "2026-12-01T07:45:31.870Z"
  }
}

Excerpt: the response carries more fields. The OpenAPI file lists them all.

POST /v1/form-templates/{id}/status

Switch template status (draft / active / archived).

Update a template / switch between draft, active and archived.

Scope: form_templates:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
status string yes Values: draft, active, archived.

Example call

curl -X POST "https://api.litelog.de/api/v1/form-templates/7c9e6679-7425-40de-944b-e07fc1f90ae7/status" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "status": "active"
}'

Example response (200)

{
  "data": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "Endreinigung Checkliste",
    "description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
    "schema": [
      {
        "id": "f_kueche",
        "type": "ok_defect",
        "label": {
          "de": "Küche gereinigt"
        },
        "required": true,
        "requireOnDefect": {
          "note": true
        },
        "allowNa": false
      },
      {
        "id": "f_bad",
        "type": "ok_defect",
        "label": {
          "de": "Bad gereinigt"
        },
        "required": true,
        "requireOnDefect": {
          "note": true
        },
        "allowNa": false
      },
      {
        "id": "f_bemerkung",
        "type": "long_text",
        "label": {
          "de": "Bemerkung"
        }
      }
    ],
    "scope": "property",
    "assignment": {
      "property_ids": [
        124
      ]
    },
    "icon": null,
    "accent_color": null,
    "default_priority": "medium",
    "template_kind": "user",
    "version": 1,
    "status": "active",
    "is_published": true,
    "is_default": false,
    "requires_signature": false,
    "esignature_mode": null,
    "requires_review": false,
    "scoring_enabled": false,
    "pass_threshold": null,
    "created_at": "2026-12-01T07:30:04.118Z",
    "updated_at": "2026-12-01T07:50:12.306Z"
  }
}

Excerpt: the response carries more fields. The OpenAPI file lists them all.

POST /v1/form-templates/catalog/import

Import catalog templates as drafts (e.g. the vacation-rental group).

Scope: form_templates:write

Parameters

Name In Type Required Description
X-Change-Reason header string no Reason for the change, URI-encoded, prefixed with a reason code: [correction], [new_requirement], [customer_request], [error_fix], [periodic_review] or [other], e.g. %5Bcorrection%5D%20typo%20in%20name. Required when the tenant policy "Änderungsgrund erforderlich" is on, or when the change needs an approval request; stored in the configuration audit trail. At most 2000 characters.

Body fields (JSON)

Field Type Required Description
keys array (string) yes —
change_reason string no Optional. Importing needs no reason; when given, it is stored with the created rows (alternatively header X-Change-Reason). At most 2000 characters.

Example call

curl -X POST "https://api.litelog.de/api/v1/form-templates/catalog/import" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "keys": [
    "Reinigungscheckliste",
    "Housekeeping-Abnahme",
    "Übergabeprotokoll Einzug"
  ]
}'

Example response (200)

{
  "data": {
    "created": [
      "Reinigungscheckliste",
      "Übergabeprotokoll Einzug"
    ],
    "skipped": [
      "Housekeeping-Abnahme"
    ]
  }
}