Calls and topics
/api/v1/cagrilar — GET
Section titled “/api/v1/cagrilar — GET”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
Parameters
Section titled “Parameters”| Name | In | Type | Limits | Meaning |
|---|---|---|---|---|
since | query | string (date-time) | null | From this moment on (ISO 8601). | |
until | query | string (date-time) | null | created_at < until (ISO 8601). | |
channel | query | "web" | "phone_in" | "phone_out" | "web_sohbet" | "sms" | "eposta" | null | phone_in (inbound), phone_out (outbound), web. | |
topic_id | query | string (uuid) | null | Topic id (needs topic analytics). | |
cozum | query | string | null | Resolution: pinar_cozdu (resolved by the assistant), talep_acildi, temsilciye_yonlendi, cozulmedi, belirsiz. | |
is_test | query | boolean | null | Filter test calls. | |
cursor | query | string | null | next_cursor from the previous response. | |
limit | query | integer | ≥ 1, ≤ 100, default 50 | Page size. |
Example
Section titled “Example”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"Response 200
Section titled “Response 200”{ "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.
/api/v1/cagrilar/{call_id} — GET
Section titled “/api/v1/cagrilar/{call_id} — GET”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
Parameters
Section titled “Parameters”| Name | In | Type | Limits | Meaning |
|---|---|---|---|---|
call_id * | path | string (uuid) | Call id (UUID). |
Example
Section titled “Example”curl -s "$RZ_API/api/v1/cagrilar/0199…" -H "Authorization: Bearer $RZ_KEY"Response 200
Section titled “Response 200”{ "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.
/api/v1/konular/istatistik — GET
Section titled “/api/v1/konular/istatistik — GET”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
Parameters
Section titled “Parameters”| Name | In | Type | Limits | Meaning |
|---|---|---|---|---|
from * | query | string (date) | First day (Istanbul, inclusive). | |
to * | query | string (date) | Last day (Istanbul, inclusive). | |
channel | query | "web" | "phone_in" | "phone_out" | "web_sohbet" | "sms" | "eposta" | null | phone_in (inbound), phone_out (outbound), web. |
Example
Section titled “Example”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"Response 200
Section titled “Response 200”{ "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.
© 2026 Erusoft