API reference
The endpoints below can be called with an API key (the public API). Each is the same endpoint the panel uses and needs the same
permission. Addresses start with https://<api-address>. For authentication, paging and the error format, see
REST API.
| Method and address | Permission | What it does |
|---|---|---|
GET /api/v1/inspections |
View inspections | The inspection list (paged). |
GET /api/v1/inspections/{inspectionId} |
View inspections | One inspection: answers, score, findings. |
GET /api/v1/inspections/{inspectionId}/report |
Download reports | A short-lived download link for the published report. |
GET /api/v1/inspections/findings |
View findings | The finding list (paged). |
GET /api/v1/inspections/actions |
View corrective actions | The corrective action list (paged). |
GET /api/v1/inspections/actions/{actionId} |
View corrective actions | One corrective action: evidence, change and closing requests. |
POST /api/v1/inspections/actions/{actionId}/change-requests |
Manage corrective actions | A due date or owner change. |
POST /api/v1/inspections/actions/{actionId}/verify |
Verify corrective actions | Verifies and closes the corrective action. |
POST /api/v1/inspections/actions/{actionId}/reject |
Verify corrective actions | Sends the closing request back to its owner with a reason. |
GET /api/v1/locations |
View locations | The location list (paged). |
GET /api/v1/inspections/feedback/votes |
View analytics and visitor votes | Visitor feedback votes (paged). |
Every other endpoint returns 403 to an API key.
Inspection list
Section titled “Inspection list”GET /api/v1/inspections
| Parameter | Type | Meaning |
|---|---|---|
status |
text | One status: Scheduled, InProgress, InReview, Published, Missed, Cancelled, Amending. |
statuses |
text array | Several statuses. |
search |
text | Search. |
locationId |
GUID | Location. |
includeSubLocations |
true/false | Include sub-locations too. |
templateId |
GUID | Template. |
auditorUserId |
GUID | Inspector. |
from, to |
time | The inspection window. |
publishedFrom, publishedTo |
time | Publish time. |
pageNumber, pageSize, sort |
Paging. |
Example: inspections published in the last week.
curl "https://<api-address>/api/v1/inspections?status=Published&publishedFrom=2026-11-27T00:00:00%2B03:00&pageSize=50" \ -H "Authorization: ApiKey $DEFTHAND_API_KEY"Published report
Section titled “Published report”GET /api/v1/inspections/{inspectionId}/report returns a short-lived download link for the inspection’s latest Final report. If the
inspection is being amended, the previous Final report comes. If there is no Final report yet, 409 is returned.
{ "url": "https://…", "expiresAt": "2026-12-04T10:15:00+00:00", "fileName": "Denetim-Gebze-Depo-2026-12-03.pdf", "version": 2, "inspectionRevision": 0}The link is valid until expiresAt; download the file at once and do not store the link.
Finding list
Section titled “Finding list”GET /api/v1/inspections/findings: inspectionId, locationId, status (Draft, Open, Closed), severityId, isRepeat,
pageNumber, pageSize, sort.
Corrective action list and detail
Section titled “Corrective action list and detail”GET /api/v1/inspections/actions: mine, toVerify, overdue (true/false), findingId, inspectionId, locationId, status,
severityId, dueFrom, dueTo, pageNumber, pageSize, sort.
GET /api/v1/inspections/actions/{actionId}: the whole corrective action.
Due date or owner change
Section titled “Due date or owner change”POST /api/v1/inspections/actions/{actionId}/change-requests — with the “Manage corrective actions” permission the request is applied at
once.
{ "kind": "DueDate", "reason": "Yedek parça 20 Aralık'ta gelecek.", "proposedDueAt": "2026-12-22T17:00:00+03:00" }{ "kind": "Reassignment", "reason": "Bakım ekibi devraldı.", "proposedOwnerUserId": "<person-id>" }Response: the change request’s id (GUID).
Verifying and sending back
Section titled “Verifying and sending back”POST /api/v1/inspections/actions/{actionId}/verify verifies and closes the corrective action. The body is optional:
{ "comment": "Yerinde kontrol edildi, giderilmiş.", "effectivenessDueOn": "2027-01-15" }effectivenessDueOn is the date of the effectiveness check; a signature can also be sent with signaturePngBase64.
POST /api/v1/inspections/actions/{actionId}/reject sends the closing request back to its owner:
{ "reason": "Fotoğraf eksik, yeniden yükleyin." }Both return 204 No Content on success. These endpoints support the Idempotency-Key header.
Locations
Section titled “Locations”GET /api/v1/locations: search, withinId (those under a location), levelDepth, kind, isActive, isSensitiveArea, pageNumber,
pageSize, sort. A key sees all the company’s locations.
Visitor feedback
Section titled “Visitor feedback”GET /api/v1/inspections/feedback/votes: newest first, at most 100 per page. Parameters: from, to, locationId, pointId,
negativeOnly, pageNumber, pageSize. The visitor’s comment, language and device trace are not in the response.
Trail of changes made with a key
Section titled “Trail of changes made with a key”A change made with a key shows on the inspection’s timeline with the key’s name and prefix, and in the audit trail as “API key {prefix} ({name})”.