Incoming certificates
curl --request GET \
--url https://api.sortx.co.uk/certificate-intake \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/certificate-intake', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/certificate-intake"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "<string>",
"documentId": "<string>",
"name": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"source": "upload",
"batchId": "<string>",
"emailFrom": "<string>",
"emailSubject": "<string>",
"status": "to_file",
"revision": 123,
"receivedAt": "<string>",
"textState": "<string>",
"postcodeMatches": [
{
"id": "<string>",
"label": "<string>"
}
],
"suggestion": {
"id": "<string>",
"state": "<string>",
"note": "<string>",
"kind": {
"id": "<string>",
"label": "<string>",
"confidence": 123
},
"property": {
"id": "<string>",
"label": "<string>",
"confidence": 123
},
"values": [
{
"field": "<string>",
"value": "<string>",
"spanId": "<string>",
"quote": "<string>"
}
],
"missingFields": [
"<string>"
]
},
"readiness": "reading",
"filed": {
"subjectKind": "<string>",
"subjectId": "<string>",
"label": "<string>",
"kind": "<string>"
},
"decidedAt": "<string>",
"dismissReason": "<string>"
}
],
"counts": {
"toFile": 123,
"ready": 123,
"needsLook": 123,
"filed": 123,
"dismissed": 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
Incoming certificates
Certificates waiting to be filed, with what the postcode and the AI reading suggest
GET
/
certificate-intake
Incoming certificates
curl --request GET \
--url https://api.sortx.co.uk/certificate-intake \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/certificate-intake', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/certificate-intake"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "<string>",
"documentId": "<string>",
"name": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"source": "upload",
"batchId": "<string>",
"emailFrom": "<string>",
"emailSubject": "<string>",
"status": "to_file",
"revision": 123,
"receivedAt": "<string>",
"textState": "<string>",
"postcodeMatches": [
{
"id": "<string>",
"label": "<string>"
}
],
"suggestion": {
"id": "<string>",
"state": "<string>",
"note": "<string>",
"kind": {
"id": "<string>",
"label": "<string>",
"confidence": 123
},
"property": {
"id": "<string>",
"label": "<string>",
"confidence": 123
},
"values": [
{
"field": "<string>",
"value": "<string>",
"spanId": "<string>",
"quote": "<string>"
}
],
"missingFields": [
"<string>"
]
},
"readiness": "reading",
"filed": {
"subjectKind": "<string>",
"subjectId": "<string>",
"label": "<string>",
"kind": "<string>"
},
"decidedAt": "<string>",
"dismissReason": "<string>"
}
],
"counts": {
"toFile": 123,
"ready": 123,
"needsLook": 123,
"filed": 123,
"dismissed": 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>"
}