curl --request GET \
--url https://api.open.cx/sla/analytics/trend \
--header 'Authorization: Bearer <token>'{
"granularity": "day",
"data": [
{
"date": "<string>",
"sessions_count": 0,
"compliance": {
"overall": 123,
"first_reply": {
"fulfilled": 0,
"breached": 0,
"completed_after_breach": 0,
"active": 0,
"rate": 123
},
"next_reply": {
"fulfilled": 0,
"breached": 0,
"completed_after_breach": 0,
"active": 0,
"rate": 123
},
"resolution": {
"fulfilled": 0,
"breached": 0,
"completed_after_breach": 0,
"active": 0,
"rate": 123
}
},
"percentiles": {
"first_reply": {
"p50": 123,
"p90": 123,
"p95": 123
},
"next_reply": {
"p50": 123,
"p90": 123,
"p95": 123
},
"resolution": {
"p50": 123,
"p90": 123,
"p95": 123
}
}
}
]
}Get SLA compliance rates over time, grouped by day or week.
curl --request GET \
--url https://api.open.cx/sla/analytics/trend \
--header 'Authorization: Bearer <token>'{
"granularity": "day",
"data": [
{
"date": "<string>",
"sessions_count": 0,
"compliance": {
"overall": 123,
"first_reply": {
"fulfilled": 0,
"breached": 0,
"completed_after_breach": 0,
"active": 0,
"rate": 123
},
"next_reply": {
"fulfilled": 0,
"breached": 0,
"completed_after_breach": 0,
"active": 0,
"rate": 123
},
"resolution": {
"fulfilled": 0,
"breached": 0,
"completed_after_breach": 0,
"active": 0,
"rate": 123
}
},
"percentiles": {
"first_reply": {
"p50": 123,
"p90": 123,
"p95": 123
},
"next_reply": {
"p50": 123,
"p90": 123,
"p95": 123
},
"resolution": {
"p50": 123,
"p90": 123,
"p95": 123
}
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$web, email, phone_voice, slack, sms, whatsapp, instagram, messenger, api, web_voice -9007199254740991 <= x <= 9007199254740991day, week Was this page helpful?