List inspection frequencies
Returns your inspection frequencies by name. Narrow them with type and status. Pass each response’s next_cursor as cursor to fetch the next page, until it is null.
ApiKeyAuthorizationBearer <token>Your organisation's API key. Send it as Authorization: Bearer <key>. Create one in the Scannable admin under Settings → API keys.
limit?integerPage size (1–100). Defaults to 20.
1 <= value <= 10020cursor?stringThe next_cursor of the previous page. Leave it out for the first page. A cursor only works with the filters it was issued for.
type?stringOnly the inspection frequencies for this kind of inspection.
"thorough""general"status?stringOnly the active or only the paused inspection frequencies.
"active""paused"A page of your inspection frequencies.
application/json- response
data*array<>total*integerThe total number of results that match the filters.
-9007199254740991 <= value <= 9007199254740991limit*integerThe page size applied to this response.
-9007199254740991 <= value <= 9007199254740991next_cursor*|Pass as cursor to fetch the next page. Null on the last page.
curl -X GET 'https://api.scannable.io/v1/inspection-frequencies'{ "data": [ { "id": "freq_fu760equhw69jld", "name": "6-monthly thorough", "interval": { "quantity": 6, "unit": "months" }, "type": "thorough", "status": "active", "created_at": "2025-01-09T12:00:00.000Z", "updated_at": "2025-01-09T12:00:00.000Z" } ], "total": 42, "limit": 20, "next_cursor": "eyJwb3NpdGlvbiI6eyJjcmVhdGVkQXQiOiIyMDIxLTAyLTI1VDIzOjIzOjI5LjAwMFoiLCJ1aWQiOiJpdXNoOTN4djN4cnN2MWMifSwiZmlsdGVycyI6Imw5Rnc0VlVPN2tyOCJ9"}