curl -X GET "https://app.whattalk.ai/api/user/conversations?type=widget&per_page=10" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://app.whattalk.ai/api/user/conversations?type=widget&per_page=10',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data.data); // Array of conversations
import requests
response = requests.get(
'https://app.whattalk.ai/api/user/conversations',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={
'type': 'widget',
'per_page': 10
}
)
data = response.json()
print(data['data'])
{
"current_page": 1,
"data": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"assistant_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"assistant_name": "Support Assistant",
"type": "widget",
"message_count": 12,
"total_cost": 0.0045,
"ai_enabled": true,
"created_at": "2025-01-25 14:30:00",
"updated_at": "2025-01-25 14:45:22"
},
{
"id": "8d0f7780-8536-51ef-055c-f18fd2g01bf8",
"assistant_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"assistant_name": "Support Assistant",
"type": "whatsapp",
"message_count": 8,
"total_cost": 0.0032,
"ai_enabled": true,
"created_at": "2025-01-25 10:15:00",
"updated_at": "2025-01-25 10:28:45"
}
],
"first_page_url": "https://app.whattalk.ai/api/user/conversations?page=1",
"from": 1,
"last_page": 5,
"last_page_url": "https://app.whattalk.ai/api/user/conversations?page=5",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.whattalk.ai/api/user/conversations?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.whattalk.ai/api/user/conversations?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.whattalk.ai/api/user/conversations?page=2",
"path": "https://app.whattalk.ai/api/user/conversations",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 68
}
Konuşmalar
Konuşmaları Listele
Kimliği doğrulanmış kullanıcının tüm konuşmalarını filtreleme ve sayfalama ile listeleyin
GET
/
user
/
conversations
curl -X GET "https://app.whattalk.ai/api/user/conversations?type=widget&per_page=10" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://app.whattalk.ai/api/user/conversations?type=widget&per_page=10',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data.data); // Array of conversations
import requests
response = requests.get(
'https://app.whattalk.ai/api/user/conversations',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={
'type': 'widget',
'per_page': 10
}
)
data = response.json()
print(data['data'])
{
"current_page": 1,
"data": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"assistant_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"assistant_name": "Support Assistant",
"type": "widget",
"message_count": 12,
"total_cost": 0.0045,
"ai_enabled": true,
"created_at": "2025-01-25 14:30:00",
"updated_at": "2025-01-25 14:45:22"
},
{
"id": "8d0f7780-8536-51ef-055c-f18fd2g01bf8",
"assistant_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"assistant_name": "Support Assistant",
"type": "whatsapp",
"message_count": 8,
"total_cost": 0.0032,
"ai_enabled": true,
"created_at": "2025-01-25 10:15:00",
"updated_at": "2025-01-25 10:28:45"
}
],
"first_page_url": "https://app.whattalk.ai/api/user/conversations?page=1",
"from": 1,
"last_page": 5,
"last_page_url": "https://app.whattalk.ai/api/user/conversations?page=5",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.whattalk.ai/api/user/conversations?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.whattalk.ai/api/user/conversations?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.whattalk.ai/api/user/conversations?page=2",
"path": "https://app.whattalk.ai/api/user/conversations",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 68
}
Bu endpoint, kimliği doğrulanmış kullanıcının asistanlarına ait sayfalanmış konuşma listesini döndürür. Bunu konuşma geçmişini görüntülemek, türe göre filtrelemek veya CRM’inizle entegre etmek için kullanın.
Bu endpoint kimlik doğrulaması gerektirir. API anahtarınızı
Authorization başlığında Bearer token olarak gönderin.Sorgu Parametreleri
string
Konuşmaları türe göre filtreleyin. Olası değerler:
test, widget, whatsapp, apiinteger
Konuşmaları asistan kimliğine göre filtreleyin (kimliği doğrulanmış kullanıcıya ait olmalıdır)
string
Bu tarihten itibaren konuşmaları filtreleyin (YYYY-MM-DD formatı)
string
Bu tarihe kadar konuşmaları filtreleyin (YYYY-MM-DD formatı)
integer
Sayfa başına konuşma sayısı (1-100, varsayılan: 15)
integer
Sayfa numarası (varsayılan: 1)
Yanıt Alanları
array
Göster özellikler
Göster özellikler
string
Konuşmanın benzersiz UUID tanımlayıcısı
string
Bu konuşmayı yöneten asistanın UUID’si
string
Bu konuşmayı yöneten asistanın adı
string
Konuşma türü:
test, widget, whatsapp veya apiinteger
Konuşmadaki toplam mesaj sayısı
number
Konuşmanın USD cinsinden toplam maliyeti
boolean
Bu konuşma için yapay zeka yanıtlarının etkin olup olmadığı
string
Konuşmanın oluşturulma tarihi ve saati
string
Konuşmanın son güncellenme tarihi ve saati
integer
Mevcut sayfa numarası
integer
Sayfa başına öğe sayısı
integer
Kriterlere uyan toplam konuşma sayısı
integer
Son sayfa numarası
curl -X GET "https://app.whattalk.ai/api/user/conversations?type=widget&per_page=10" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://app.whattalk.ai/api/user/conversations?type=widget&per_page=10',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data.data); // Array of conversations
import requests
response = requests.get(
'https://app.whattalk.ai/api/user/conversations',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={
'type': 'widget',
'per_page': 10
}
)
data = response.json()
print(data['data'])
{
"current_page": 1,
"data": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"assistant_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"assistant_name": "Support Assistant",
"type": "widget",
"message_count": 12,
"total_cost": 0.0045,
"ai_enabled": true,
"created_at": "2025-01-25 14:30:00",
"updated_at": "2025-01-25 14:45:22"
},
{
"id": "8d0f7780-8536-51ef-055c-f18fd2g01bf8",
"assistant_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"assistant_name": "Support Assistant",
"type": "whatsapp",
"message_count": 8,
"total_cost": 0.0032,
"ai_enabled": true,
"created_at": "2025-01-25 10:15:00",
"updated_at": "2025-01-25 10:28:45"
}
],
"first_page_url": "https://app.whattalk.ai/api/user/conversations?page=1",
"from": 1,
"last_page": 5,
"last_page_url": "https://app.whattalk.ai/api/user/conversations?page=5",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.whattalk.ai/api/user/conversations?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.whattalk.ai/api/user/conversations?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.whattalk.ai/api/user/conversations?page=2",
"path": "https://app.whattalk.ai/api/user/conversations",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 68
}
Konuşma Türleri
| Tür | Açıklama |
|---|---|
test | Asistan test arayüzünden yapılan dahili test konuşmaları |
widget | Web sohbet widget’ından gelen konuşmalar |
whatsapp | WhatsApp Business konuşmaları |
api | API aracılığıyla oluşturulan konuşmalar |
Kullanım Alanları
- Analitik Panosu: Konuşma metriklerini ve trendleri görüntüleyin
- CRM Entegrasyonu: Konuşma verilerini müşteri veritabanınızla senkronize edin
- Kalite İzleme: Tür ve asistana göre konuşma hacimlerini inceleyin
- Fatura İnceleme: Kuruluşunuz genelinde konuşma maliyetlerini takip edin

