Auditmark

List a location's inspections

GET
/locations/{location_id}/inspections

The site record's inspection history, ranged in the ORG's timezone and keyset-paged.

A dedicated endpoint rather than a filter on the shared GET /inspections, which returns a bare array and is consumed that way by useInspections; a page envelope cannot be bolted onto that response without breaking every existing caller.

Authorization

OrgApiKey
AuthorizationBearer <token>

Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.

In: header

Path Parameters

location_id*Location Id

Query Parameters

range?Range
cursor?string|null
limit?Limit

Response Body

application/json

application/json

curl -X GET "https://api.auditmark.io/v1/locations/497f6eca-6276-4993-bfeb-53cbbbba6f08/inspections"
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "template_name": "string",      "inspector_names": [        "string"      ],      "status": "string",      "score": 0,      "open_findings": 0,      "completed_at": "string",      "scheduled_at": "string"    }  ],  "next_cursor": "string"}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}