Müşterileri listele
curl --request GET \
--url https://api.example.com/user/leadsimport requests
url = "https://api.example.com/user/leads"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/user/leads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/user/leads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/user/leads"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/user/leads")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/user/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"current_page": 1,
"data": [
{
"id": 1,
"campaign_id": 1,
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "john.doe@example.com"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04",
"campaign": {
"id": 1,
"name": "My new campaign"
},
"secondary_contacts": [
{
"id": 2,
"phone_number": "+1234567899",
"variables": {
"customer_name": "Jane Doe Secondary",
"email": "jane.doe.secondary@example.com"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04"
}
]
}
],
"first_page_url": "https://app.whattalk.ai/api/user/leads?page=1",
"from": 1,
"last_page": 10,
"last_page_url": "https://app.whattalk.ai/api/user/leads?page=10",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.whattalk.ai/api/user/leads?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.whattalk.ai/api/user/leads?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.whattalk.ai/api/user/leads?page=2",
"path": "https://app.whattalk.ai/api/user/leads",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 150
}
Müşteriler
Müşterileri listele
Kimliği doğrulanmış kullanıcının tüm müşterilerini filtreleme ve sayfalama seçenekleriyle listeleyin
GET
/
user
/
leads
Müşterileri listele
curl --request GET \
--url https://api.example.com/user/leadsimport requests
url = "https://api.example.com/user/leads"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/user/leads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/user/leads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/user/leads"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/user/leads")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/user/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"current_page": 1,
"data": [
{
"id": 1,
"campaign_id": 1,
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "john.doe@example.com"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04",
"campaign": {
"id": 1,
"name": "My new campaign"
},
"secondary_contacts": [
{
"id": 2,
"phone_number": "+1234567899",
"variables": {
"customer_name": "Jane Doe Secondary",
"email": "jane.doe.secondary@example.com"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04"
}
]
}
],
"first_page_url": "https://app.whattalk.ai/api/user/leads?page=1",
"from": 1,
"last_page": 10,
"last_page_url": "https://app.whattalk.ai/api/user/leads?page=10",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.whattalk.ai/api/user/leads?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.whattalk.ai/api/user/leads?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.whattalk.ai/api/user/leads?page=2",
"path": "https://app.whattalk.ai/api/user/leads",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 150
}
Bu endpoint, kimliği doğrulanmış kullanıcıya ait tüm müşterileri çeşitli filtreleme ve sayfalama seçenekleriyle listelemenizi sağlar.
Sorgu Parametreleri
string
Müşterileri duruma göre filtreleyin. Olası değerler:
created, scheduled, processing, completed, rescheduled, reached-max-retries, blacklistedinteger
Müşterileri kampanya kimliğine göre filtreleyin
string
Müşterileri telefon numarasına göre filtreleyin (kısmi eşleşme desteklenir)
string
Bu tarihten itibaren oluşturulan müşterileri filtreleyin (YYYY-MM-DD formatı)
string
Bu tarihe kadar oluşturulan müşterileri filtreleyin (YYYY-MM-DD formatı)
integer
Sayfa başına müşteri sayısı (1-100, varsayılan: 15)
integer
Sayfa numarası (varsayılan: 1)
Yanıt alanları
array
Göster özellikler
Göster özellikler
integer
Müşterinin kimliği
integer
Bu müşterinin ait olduğu kampanyanın kimliği
string
Müşterinin E.164 formatındaki telefon numarası
object
Müşteriyle ilişkili değişkenler
string
Müşterinin durumu
string
Müşterinin oluşturulma tarihi
string
Müşterinin güncellenme tarihi
object
array
Bu müşteriyle ilişkili ikincil iletişim kişileri dizisi
Göster secondary_contacts özellikleri
Göster secondary_contacts özellikleri
integer
İkincil iletişim kişisinin kimliği
string
İkincil iletişim kişisinin E.164 formatındaki telefon numarası
object
İkincil iletişim kişisiyle ilişkili değişkenler
string
İkincil iletişim kişisinin durumu
string
İkincil iletişim kişisinin oluşturulma tarihi
string
İkincil iletişim kişisinin güncellenme tarihi
integer
Mevcut sayfa numarası
integer
Sayfa başına öğe sayısı
integer
Kriterlere uyan toplam müşteri sayısı
integer
Son sayfa numarası
{
"current_page": 1,
"data": [
{
"id": 1,
"campaign_id": 1,
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "john.doe@example.com"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04",
"campaign": {
"id": 1,
"name": "My new campaign"
},
"secondary_contacts": [
{
"id": 2,
"phone_number": "+1234567899",
"variables": {
"customer_name": "Jane Doe Secondary",
"email": "jane.doe.secondary@example.com"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04"
}
]
}
],
"first_page_url": "https://app.whattalk.ai/api/user/leads?page=1",
"from": 1,
"last_page": 10,
"last_page_url": "https://app.whattalk.ai/api/user/leads?page=10",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.whattalk.ai/api/user/leads?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.whattalk.ai/api/user/leads?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.whattalk.ai/api/user/leads?page=2",
"path": "https://app.whattalk.ai/api/user/leads",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 150
}
⌘I

