All developer pages

API reference

Reports

1 operations. Base URL: https://api.ringura.com/api/v1. Authenticate with a bearer token that carries the scope named on each operation.

GET /api/v1/reports/{groupBy}

Historical figures from the metric dictionary by channel, queue, agent or campaign. Ask for text/csv to get CSV.

Scope
reports:read
Operation id
getReport

Parameters

Parameters of GET /api/v1/reports/{groupBy}
NameInTypeRequiredConstraints
groupBypathstringYesone of "channel", "queue", "agent", "campaign"
fromquerystring (date-time)Yes
toquerystring (date-time)Yes

Response

200 JSON with these fields. Also available as text/csv.

Response fields of GET /api/v1/reports/{groupBy}
FieldTypeRequiredConstraints
dictionaryVersionintegerYes
windowobjectYes
window.fromstring (date-time)Yes
window.tostring (date-time)Yes
groupBystringYesone of "channel", "queue", "agent", "campaign"
metricsarray of stringYes
rowsarray of objectYes
rows[].keystringYes
rows[].labelstringYes
rows[].metricsobjectYesfree-form object
totalobjectYesfree-form object

Errors

400, 401, 403, 404, 409, 429. What each status means

Example request

curl -X GET 'https://api.ringura.com/api/v1/reports/channel?from=2027-01-04T09%3A00%3A00Z&to=2027-01-04T09%3A00%3A00Z' \
  -H "Authorization: Bearer $CC_TOKEN"