Triage queue
curl --request GET \
--url https://api.sortx.co.uk/maintenance-pro/triage \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/maintenance-pro/triage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/maintenance-pro/triage"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"sortedToday": 123,
"items": [
{
"repairId": "<string>",
"reference": "<string>",
"place": "<string>",
"addressNotOnFile": true,
"propertyId": "<string>",
"fault": "<string>",
"description": "<string>",
"reportedAt": "<string>",
"channel": "<string>",
"reporter": {
"name": "<string>",
"firstName": "<string>",
"role": "<string>",
"tracks": true
},
"urgency": "<string>",
"category": "<string>",
"faultNodeId": "<string>",
"hold": {
"code": "address-not-on-file",
"label": "<string>",
"detail": "<string>",
"tone": "em"
},
"ai": {
"category": "<string>",
"photo": "<string>",
"urgency": "<string>",
"raisedFrom": "<string>",
"raisedBecause": "<string>"
},
"photoDocumentId": "<string>",
"hazard": {
"status": "hazard",
"decision": "emergency",
"regime": "private",
"basis": "statutory",
"basisLabel": "<string>",
"revision": 123,
"emergency": {
"tiles": [
{
"name": "<string>",
"due": "<string>",
"state": "<string>",
"tone": "good"
}
],
"inspectBy": "<string>"
},
"significant": {
"tiles": [
{
"name": "<string>",
"due": "<string>",
"state": "<string>",
"tone": "good"
}
],
"inspectBy": "<string>"
}
}
}
]
}{
"_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>"
}maintenance-pro
Triage queue
The reported repairs waiting for a person, with why each waits, the AI’s reading and the hazard clocks a decision would start
GET
/
maintenance-pro
/
triage
Triage queue
curl --request GET \
--url https://api.sortx.co.uk/maintenance-pro/triage \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/maintenance-pro/triage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/maintenance-pro/triage"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"sortedToday": 123,
"items": [
{
"repairId": "<string>",
"reference": "<string>",
"place": "<string>",
"addressNotOnFile": true,
"propertyId": "<string>",
"fault": "<string>",
"description": "<string>",
"reportedAt": "<string>",
"channel": "<string>",
"reporter": {
"name": "<string>",
"firstName": "<string>",
"role": "<string>",
"tracks": true
},
"urgency": "<string>",
"category": "<string>",
"faultNodeId": "<string>",
"hold": {
"code": "address-not-on-file",
"label": "<string>",
"detail": "<string>",
"tone": "em"
},
"ai": {
"category": "<string>",
"photo": "<string>",
"urgency": "<string>",
"raisedFrom": "<string>",
"raisedBecause": "<string>"
},
"photoDocumentId": "<string>",
"hazard": {
"status": "hazard",
"decision": "emergency",
"regime": "private",
"basis": "statutory",
"basisLabel": "<string>",
"revision": 123,
"emergency": {
"tiles": [
{
"name": "<string>",
"due": "<string>",
"state": "<string>",
"tone": "good"
}
],
"inspectBy": "<string>"
},
"significant": {
"tiles": [
{
"name": "<string>",
"due": "<string>",
"state": "<string>",
"tone": "good"
}
],
"inspectBy": "<string>"
}
}
}
]
}{
"_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>"
}