List fire risk assessments
curl --request GET \
--url https://api.scoutworks.app/api/v1/fire-risk-assessments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/fire-risk-assessments"
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/fire-risk-assessments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hireAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assessedOn": "2023-12-25",
"nextReviewOn": "2023-12-25",
"status": "review_overdue",
"reviewState": "not_set",
"superseded": true,
"hasDocument": true,
"findingCount": 0,
"actions": {
"total": 0,
"open": 0,
"overdue": 0
},
"nextActionDueOn": "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 fire risk assessments
Fire risk assessments, oldest first, with the status the fire risk register shows, review dates, and counts and due dates of the actions raised from their findings. The assessor, summary, findings’ text and document 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
/
fire-risk-assessments
List fire risk assessments
curl --request GET \
--url https://api.scoutworks.app/api/v1/fire-risk-assessments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/fire-risk-assessments"
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/fire-risk-assessments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hireAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assessedOn": "2023-12-25",
"nextReviewOn": "2023-12-25",
"status": "review_overdue",
"reviewState": "not_set",
"superseded": true,
"hasDocument": true,
"findingCount": 0,
"actions": {
"total": 0,
"open": 0,
"overdue": 0
},
"nextActionDueOn": "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