Ai calls
curl --request GET \
--url https://api.sortx.co.uk/front-desk/ai-calls \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/front-desk/ai-calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/front-desk/ai-calls"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"sendToPeople": true,
"canSendToPeople": true,
"stats": {
"callsToday": 123,
"waitedInQueue": 123,
"answerSeconds": 123,
"firstRing": true,
"sortedNoPerson": 123,
"sortedShare": 123,
"repairsLogged": 123,
"fixedOnCall": 123,
"timeSavedSeconds": 123
},
"live": [
{
"enquiryId": "<string>",
"callId": "<string>",
"startedAt": "<string>",
"caller": "<string>",
"facts": [
"<string>"
],
"transcript": [
{
"role": "caller",
"text": "<string>"
}
],
"steps": [
{
"label": "<string>",
"state": "done"
}
],
"filled": {
"fault": {
"text": "<string>",
"tone": "em"
},
"urgency": {
"text": "<string>",
"tone": "em"
},
"safety": {
"text": "<string>",
"tone": "em"
},
"linked": {
"text": "<string>",
"tone": "em"
}
},
"repairId": "<string>"
}
],
"needsYou": [
{
"enquiryId": "<string>",
"callId": "<string>",
"startedAt": "<string>",
"caller": "<string>",
"firstName": "<string>",
"reason": {
"label": "<string>",
"tone": "em"
},
"checks": [
true
],
"quote": "<string>",
"detail": "<string>",
"action": "text_confirm",
"slot": "<string>",
"repairId": "<string>",
"canDismiss": true
}
],
"needsYouTotal": 123,
"handled": {
"total": 123,
"hours": [
{
"hour": 123,
"sortedByAi": 123,
"handedToPerson": 123
}
],
"calls": [
{
"enquiryId": "<string>",
"startedAt": "<string>",
"caller": "<string>",
"what": "<string>",
"state": "sorted"
}
]
}
}{
"_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>"
}front-desk
Ai calls
The AI receptionist now and today: the call it is on, the calls that need a person, and the ones it handled
GET
/
front-desk
/
ai-calls
Ai calls
curl --request GET \
--url https://api.sortx.co.uk/front-desk/ai-calls \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/front-desk/ai-calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/front-desk/ai-calls"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"sendToPeople": true,
"canSendToPeople": true,
"stats": {
"callsToday": 123,
"waitedInQueue": 123,
"answerSeconds": 123,
"firstRing": true,
"sortedNoPerson": 123,
"sortedShare": 123,
"repairsLogged": 123,
"fixedOnCall": 123,
"timeSavedSeconds": 123
},
"live": [
{
"enquiryId": "<string>",
"callId": "<string>",
"startedAt": "<string>",
"caller": "<string>",
"facts": [
"<string>"
],
"transcript": [
{
"role": "caller",
"text": "<string>"
}
],
"steps": [
{
"label": "<string>",
"state": "done"
}
],
"filled": {
"fault": {
"text": "<string>",
"tone": "em"
},
"urgency": {
"text": "<string>",
"tone": "em"
},
"safety": {
"text": "<string>",
"tone": "em"
},
"linked": {
"text": "<string>",
"tone": "em"
}
},
"repairId": "<string>"
}
],
"needsYou": [
{
"enquiryId": "<string>",
"callId": "<string>",
"startedAt": "<string>",
"caller": "<string>",
"firstName": "<string>",
"reason": {
"label": "<string>",
"tone": "em"
},
"checks": [
true
],
"quote": "<string>",
"detail": "<string>",
"action": "text_confirm",
"slot": "<string>",
"repairId": "<string>",
"canDismiss": true
}
],
"needsYouTotal": 123,
"handled": {
"total": 123,
"hours": [
{
"hour": 123,
"sortedByAi": 123,
"handedToPerson": 123
}
],
"calls": [
{
"enquiryId": "<string>",
"startedAt": "<string>",
"caller": "<string>",
"what": "<string>",
"state": "sorted"
}
]
}
}{
"_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>"
}Authorizations
A workspace API key (Settings → API keys), scoped to <group>:read / <group>:write.