Compliance board fire
curl --request GET \
--url https://api.sortx.co.uk/compliance/boards/fire-safety \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/compliance/boards/fire-safety', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/compliance/boards/fire-safety"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"today": "<string>",
"dataAsOf": "<string>",
"kpis": [
{
"key": "<string>",
"label": "<string>",
"value": "<string>",
"valueSuffix": "<string>",
"sub": "<string>",
"tone": "ok"
}
],
"tabs": [
{
"key": "<string>",
"label": "<string>",
"count": 123
}
],
"rows": [
{
"propertyId": "<string>",
"property": {
"propertyId": "<string>",
"name": "<string>",
"line1": "<string>",
"postcode": "<string>",
"area": "<string>",
"town": "<string>",
"place": "<string>",
"type": "<string>",
"beds": 123,
"rooms": 123,
"hmo": true,
"blockId": "<string>",
"blockName": "<string>",
"landlordContactId": "<string>",
"landlord": "<string>",
"tenants": [
"<string>"
],
"occupants": 123,
"vacant": true,
"tenancyEndsOn": "<string>",
"nextTenancyStartsOn": "<string>"
},
"tabs": [
"<string>"
],
"status": {
"tone": "ok",
"label": "<string>"
},
"headline": {
"tone": "ok",
"label": "<string>"
},
"documentId": "<string>",
"work": {
"id": "<string>",
"subjectKind": "property",
"subjectId": "<string>",
"kind": "<string>",
"state": "booked",
"contractorContactId": "<string>",
"contractorName": "<string>",
"visitOn": "<string>",
"note": "<string>",
"openedAt": "<string>",
"openedByUserId": "<string>",
"revision": 123,
"updatedAt": "<string>"
},
"note": "<string>",
"cells": {
"smoke": "yes",
"co": "yes",
"checkIn": "yes",
"riskAssessment": "yes",
"fireDoors": "yes",
"emergencyLights": "yes"
},
"summary": "<string>",
"checklist": [
{
"key": "<string>",
"label": "<string>",
"mark": "yes",
"sub": "<string>",
"flag": "<string>"
}
],
"safetyChecks": [
{
"id": "<string>",
"subjectKind": "property",
"subjectId": "<string>",
"unitId": "<string>",
"kind": "fire_alarm_test",
"checkedOn": "<string>",
"outcome": "pass",
"note": "<string>",
"documentId": "<string>",
"loggedAt": "<string>"
}
],
"missing": 123
}
]
}{
"_tag": "TenantCreateRejected",
"reason": "<string>",
"field": "<string>"
}{
"_tag": "Unauthenticated"
}{
"_tag": "TenantSuspended",
"tenantId": "<string>",
"reason": "<string>"
}{
"_tag": "EntitlementMissing",
"tenantId": "<string>",
"moduleId": "<string>"
}{
"_tag": "TenantNotFound",
"slug": "<string>"
}{
"_tag": "WebhookDuplicate",
"integration": "<string>",
"externalId": "<string>"
}{
"_tag": "RateLimited",
"key": "<string>",
"retryAfterSeconds": 123,
"message": "<string>"
}{
"_tag": "IntegrationUnavailable",
"integration": "<string>",
"detail": "<string>"
}compliance
Compliance board fire
Fire safety: alarms, check-in tests, risk assessments, fire doors and emergency lighting by property
GET
/
compliance
/
boards
/
fire-safety
Compliance board fire
curl --request GET \
--url https://api.sortx.co.uk/compliance/boards/fire-safety \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/compliance/boards/fire-safety', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/compliance/boards/fire-safety"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"today": "<string>",
"dataAsOf": "<string>",
"kpis": [
{
"key": "<string>",
"label": "<string>",
"value": "<string>",
"valueSuffix": "<string>",
"sub": "<string>",
"tone": "ok"
}
],
"tabs": [
{
"key": "<string>",
"label": "<string>",
"count": 123
}
],
"rows": [
{
"propertyId": "<string>",
"property": {
"propertyId": "<string>",
"name": "<string>",
"line1": "<string>",
"postcode": "<string>",
"area": "<string>",
"town": "<string>",
"place": "<string>",
"type": "<string>",
"beds": 123,
"rooms": 123,
"hmo": true,
"blockId": "<string>",
"blockName": "<string>",
"landlordContactId": "<string>",
"landlord": "<string>",
"tenants": [
"<string>"
],
"occupants": 123,
"vacant": true,
"tenancyEndsOn": "<string>",
"nextTenancyStartsOn": "<string>"
},
"tabs": [
"<string>"
],
"status": {
"tone": "ok",
"label": "<string>"
},
"headline": {
"tone": "ok",
"label": "<string>"
},
"documentId": "<string>",
"work": {
"id": "<string>",
"subjectKind": "property",
"subjectId": "<string>",
"kind": "<string>",
"state": "booked",
"contractorContactId": "<string>",
"contractorName": "<string>",
"visitOn": "<string>",
"note": "<string>",
"openedAt": "<string>",
"openedByUserId": "<string>",
"revision": 123,
"updatedAt": "<string>"
},
"note": "<string>",
"cells": {
"smoke": "yes",
"co": "yes",
"checkIn": "yes",
"riskAssessment": "yes",
"fireDoors": "yes",
"emergencyLights": "yes"
},
"summary": "<string>",
"checklist": [
{
"key": "<string>",
"label": "<string>",
"mark": "yes",
"sub": "<string>",
"flag": "<string>"
}
],
"safetyChecks": [
{
"id": "<string>",
"subjectKind": "property",
"subjectId": "<string>",
"unitId": "<string>",
"kind": "fire_alarm_test",
"checkedOn": "<string>",
"outcome": "pass",
"note": "<string>",
"documentId": "<string>",
"loggedAt": "<string>"
}
],
"missing": 123
}
]
}{
"_tag": "TenantCreateRejected",
"reason": "<string>",
"field": "<string>"
}{
"_tag": "Unauthenticated"
}{
"_tag": "TenantSuspended",
"tenantId": "<string>",
"reason": "<string>"
}{
"_tag": "EntitlementMissing",
"tenantId": "<string>",
"moduleId": "<string>"
}{
"_tag": "TenantNotFound",
"slug": "<string>"
}{
"_tag": "WebhookDuplicate",
"integration": "<string>",
"externalId": "<string>"
}{
"_tag": "RateLimited",
"key": "<string>",
"retryAfterSeconds": 123,
"message": "<string>"
}{
"_tag": "IntegrationUnavailable",
"integration": "<string>",
"detail": "<string>"
}