Events
defects
/api/v1/reporting/defectsEquipment defects. The dataset contains every defect that was open at any point in the time window, including defects that were reported or resolved within it. Loading it regularly therefore also picks up the resolution date.
Merge defects by id instead of replacing the window; see Pagination and time windows.
Query parameters
fromdate | timestamp · optional · Default: 7 days before toYYYY-MM-DD (UTC day) or timestamp with a time zone, inclusive
todate | timestamp · optional · Default: nowYYYY-MM-DD (UTC day, inclusive) or timestamp with a time zone (exclusive). The window can span at most 92 days
limitinteger · optional · Default: 500Rows per page, 1 to 1000
cursorstring · optionalnextCursor of the previous page
Fields
idintegerDefect ID
areaIdintegerArea ID
areaNamestring · nullableName of the area
locationIdinteger · nullableLocation ID
locationNamestring · nullableName of the location
deviceNamestring · nullableDevice name as reported
productNamestring · nullableLinked product
manufacturerNamestring · nullableManufacturer of the linked product
descriptionstringDescription
hasPhotobooleanWhether there is a photo
reportedAttimestampReported at
resolvedAttimestamp · nullableResolved at; null means still open
reportedByEmployeeIdinteger · nullablePerson who reported the defect (employee ID)
reportedByNamestring · nullableName of that person
Request
curl -G "https://www.gastrotodo.de/api/v1/reporting/defects" \
-d from=2026-11-24 \
-d to=2026-11-30 \
-H "Authorization: Bearer $GASTROTODO_API_KEY"Response
{
"data": [
{
"id": 3120,
"areaId": 812,
"areaName": "Hamburg",
"locationId": 4011,
"locationName": "Harbor",
"deviceName": "Dishwasher",
"productName": null,
"manufacturerName": null,
"description": "Does not heat",
"hasPhoto": true,
"reportedAt": "2026-11-28T10:00:00.000Z",
"resolvedAt": null,
"reportedByEmployeeId": 9021,
"reportedByName": "Mara Wolf"
}
],
"nextCursor": null,
"meta": {
"dataset": "defects",
"count": 1,
"generatedAt": "2026-12-01T06:00:00.000Z",
"from": "2026-11-24T06:00:00.000Z",
"to": "2026-12-01T06:00:00.000Z"
}
}