Skip to content

Calls and topics

GET/api/v1/cagrilar

Calls in ascending created_at order (incremental pull with next_cursor). Summary, resolution and topics are filled once tagging finishes (tagged_at). If topic analytics is off in your plan, the konular, cozum, tagged_at and konu_duzeltme fields are omitted and the topic_id/cozum filters return 422 unknown_filter. Phone and name are masked unless personal data is enabled.

  • Authentication: Authorization: Bearer rz_live_…
  • Scope: calls:read
  • Plan feature: Data API — if off, the endpoint answers 404 not_found
NameInTypeLimitsMeaning
sincequerystring (date-time) | nullFrom this moment on (ISO 8601).
untilquerystring (date-time) | nullcreated_at < until (ISO 8601).
channelquery"web" | "phone_in" | "phone_out" | "web_sohbet" | "sms" | "eposta" | nullphone_in (inbound), phone_out (outbound), web.
topic_idquerystring (uuid) | nullTopic id (needs topic analytics).
cozumquerystring | nullResolution: pinar_cozdu (resolved by the assistant), talep_acildi, temsilciye_yonlendi, cozulmedi, belirsiz.
is_testqueryboolean | nullFilter test calls.
cursorquerystring | nullnext_cursor from the previous response.
limitqueryinteger≥ 1, ≤ 100, default 50Page size.
Terminal window
curl -s -G "$RZ_API/api/v1/cagrilar" -H "Authorization: Bearer $RZ_KEY" \
--data-urlencode "since=2026-09-01T00:00:00+03:00" --data-urlencode "channel=phone_in" --data-urlencode "limit=50"
{
"items": [
{
"id": "0199…",
"agent": {
"id": "0199…",
"slug": "asistan",
"name": "Mağaza Asistanı"
},
"channel": "phone_in",
"status": "completed",
"outcome": "user_hangup",
"is_test": false,
"phone": "+90 532 *** ** 67",
"callee_name": "A***",
"created_at": "2026-09-24T09:10:00Z",
"answered_at": "2026-09-24T09:10:01Z",
"ended_at": "2026-09-24T09:12:40Z",
"duration_s": 159,
"summary": "Müşteri kargo durumunu sordu. Teslim tarihi bildirildi.",
"cozum": "pinar_cozdu",
"tagged_at": "2026-09-24T09:13:05Z",
"konu_duzeltme": 0,
"konular": [
{
"id": "0199…",
"ad": "Kargo durumu",
"grup": "Kargo ve teslimat",
"kaynak": "otomatik"
}
],
"requests": []
}
],
"next_cursor": "2026-09-24T09:10:00.000000+00:00_0199…",
"has_more": false
}

Error statuses: 401, 403, 404, 413, 422, 429 — see Errors and limits.


GET/api/v1/cagrilar/{call_id}

A single call. transcript is only filled when the key has the calls:read:transcript scope; otherwise it is null. The transcript is masked unless personal data is enabled.

  • Authentication: Authorization: Bearer rz_live_…
  • Scope: calls:read
  • Plan feature: Data API — if off, the endpoint answers 404 not_found
NameInTypeLimitsMeaning
call_id *pathstring (uuid)Call id (UUID).
Terminal window
curl -s "$RZ_API/api/v1/cagrilar/0199…" -H "Authorization: Bearer $RZ_KEY"
{
"id": "0199…",
"channel": "phone_in",
"status": "completed",
"summary": "…",
"transcript": [
{
"idx": 0,
"role": "assistant",
"t_start_ms": 900,
"text": "Merhaba, size nasıl yardımcı olabilirim?"
}
]
}

Error statuses: 401, 403, 404, 413, 422, 429 — see Errors and limits.


GET/api/v1/konular/istatistik

Group → topic counts, the share resolved by the assistant, and counts for the previous period of the same length. from/to are Istanbul calendar days, both inclusive; the range is at most 366 days (otherwise 422 invalid_range).

  • Authentication: Authorization: Bearer rz_live_…
  • Scope: calls:read
  • Plan feature: Data API + Topic analytics — if off, the endpoint answers 404 not_found
NameInTypeLimitsMeaning
from *querystring (date)First day (Istanbul, inclusive).
to *querystring (date)Last day (Istanbul, inclusive).
channelquery"web" | "phone_in" | "phone_out" | "web_sohbet" | "sms" | "eposta" | nullphone_in (inbound), phone_out (outbound), web.
Terminal window
curl -s -G "$RZ_API/api/v1/konular/istatistik" -H "Authorization: Bearer $RZ_KEY" \
--data-urlencode "from=2026-09-01" --data-urlencode "to=2026-09-30" --data-urlencode "channel=phone_in"
{
"totals": {
"calls": 412,
"tagged": 405,
"untagged": 7,
"corrected": 12,
"correction_rate": 0.0296
},
"groups": [
{
"ad": "Kargo ve teslimat",
"count": 160,
"prev_count": 141,
"topics": [
{
"ad": "Kargo durumu",
"count": 131,
"prev_count": 120,
"resolved_rate": 0.83
}
]
}
]
}

Error statuses: 401, 403, 404, 413, 422, 429 — see Errors and limits.