Hesabınızdaki tüm aramaları listeleyin
/api/v1/callsHesabınızdaki tüm aramaları sayfalama ve filtreleme ile listeler.
pageopsiyonelSayfa numarası (varsayılan: 1)
limitopsiyonelSayfa başına kayıt sayısı (varsayılan: 20, maksimum: 100)
assistantIdopsiyonelBelirli bir asistana ait aramaları filtrele
phoneNumberIdopsiyonelBelirli bir telefon numarasına ait aramaları filtrele
startDateopsiyonelBaşlangıç tarihi (ISO 8601 formatında)
endDateopsiyonelBitiş tarihi (ISO 8601 formatında)
directionopsiyonelArama yönü: inbound veya outbound
curl -X GET "https://api.wespoke.ai/api/v1/calls?page=1&limit=20" \
-H "Authorization: Bearer YOUR_API_KEY"{
"success": true,
"data": [
{
"id": "call_123",
"assistantId": "asst_456",
"phoneNumberId": "phone_789",
"direction": "inbound",
"status": "completed",
"startTime": "2025-01-15T10:30:00Z",
"endTime": "2025-01-15T10:35:30Z",
"duration": 330,
"endReason": "user_hangup",
"cost": "0.45",
"from": "+905559876543",
"to": "+905551234567",
"messagesCount": 6,
"recordingStatus": "completed",
"recordingDuration": 330,
"recordingFormat": "m4a",
"isSuccess": true,
"createdAt": "2025-01-15T10:30:00Z",
"assistant": {
"id": "asst_456",
"name": "Müşteri Destek Asistanı"
},
"phoneNumber": {
"id": "phone_789",
"number": "+905551234567",
"name": "Ana Hat"
}
},
{
"id": "call_124",
"assistantId": "asst_456",
"phoneNumberId": "phone_789",
"direction": "inbound",
"status": "completed",
"startTime": "2025-01-15T11:00:00Z",
"endTime": "2025-01-15T11:02:15Z",
"duration": 135,
"endReason": "assistant_hangup",
"cost": "0.23",
"from": "+905551112233",
"to": "+905551234567",
"messagesCount": 4,
"recordingStatus": "completed",
"recordingDuration": 135,
"recordingFormat": "m4a",
"isSuccess": true,
"createdAt": "2025-01-15T11:00:00Z",
"assistant": {
"id": "asst_456",
"name": "Müşteri Destek Asistanı"
},
"phoneNumber": {
"id": "phone_789",
"number": "+905551234567",
"name": "Ana Hat"
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 98,
"pages": 5
}
}idAramanın benzersiz kimliği
assistantIdAramayı gerçekleştiren asistanın kimliği
phoneNumberIdKullanılan telefon numarasının kimliği
directionArama yönü: inbound (gelen) veya outbound (giden)
statusArama durumu: queued, ringing, in-progress, completed, failed, busy, no-answer
durationArama süresi (saniye cinsinden)
endReasonAramanın bitiş nedeni: user_hangup, assistant_hangup, error, vb.
costToplam arama maliyeti (TL cinsinden)
recordingStatusKayıt durumu: none, pending, completed, failed
recordingDurationKayıt süresi (saniye cinsinden)
messagesCountArama sırasındaki toplam mesaj sayısı