List compliance logbooks
curl --request GET \
--url https://api.scoutworks.app/api/v1/compliance-logbooks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/compliance-logbooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/compliance-logbooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"categoryName": "<string>",
"frequency": "weekly",
"isActive": true,
"excludeFromScoring": true,
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hireAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"area": "<string>",
"status": "up_to_date",
"lastCheckedOn": "2023-12-25",
"lastOutcome": "pass",
"lastPassedOn": "2023-12-25",
"dueDate": "2023-12-25",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Compliance
List compliance logbooks
Recurring premises checks, oldest first, with the status the logbook card shows, the last check and its outcome, and when the next is due. Questions, answers, notes and who did a check are never returned. Pass includeDeleted=true to include removed records, and updatedSince to read only what changed. A status that changes only because a date has passed is not a change: run a full read daily if you track overdue items.
GET
/
compliance-logbooks
List compliance logbooks
curl --request GET \
--url https://api.scoutworks.app/api/v1/compliance-logbooks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/compliance-logbooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/compliance-logbooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"categoryName": "<string>",
"frequency": "weekly",
"isActive": true,
"excludeFromScoring": true,
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hireAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"area": "<string>",
"status": "up_to_date",
"lastCheckedOn": "2023-12-25",
"lastOutcome": "pass",
"lastPassedOn": "2023-12-25",
"dueDate": "2023-12-25",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Authorizations
Query Parameters
Response
OK