Telegram Toplu Numara Doğrulama API: Hızlı telefon doğrulama
Check the details of the Telegram of the input global number, whether it is a Telegram account
Dosya yükleme örneği:
curl --location 'https://api.ekycpro.com/v1/tasks' \--header 'X-API-Key: API-KEY' \--form 'file=@"./number.txt"' \--form 'task_type="tg"'Görev durumunu kontrol etme örneği:
curl --location 'https://api.ekycpro.com/v1/gettasks' \--header 'X-API-Key: API-KEY' \--form 'task_id="task_id"'Dosya yükleme başarılı yanıtı:
{ "created_at": "2024-10-19T18:24:56.450567423Z", "updated_at": "2024-10-19T18:24:56.450567423Z", "task_id": "cs9viu7i61pkfs4oavvg", "user_id": "test", "status": "pending", "total": 0, "success": 0, "failure": 0}İşleniyor durumu yanıtı:
{ "created_at": "2024-10-19T18:24:56.450567423Z", "updated_at": "2024-10-19T18:33:22.86152082Z", "task_id": "cs9viu7i61pkfs4oavvg", "user_id": "test", "status": "processing", "total": 20000, "success": 6724, "failure": 0}Görev tamamlandı yanıtı (indirme URL’i dahil):
{ "created_at": "2024-10-19T18:24:56.450567423Z", "updated_at": "2024-10-19T18:53:43.141760071Z", "task_id": "cs9viu7i61pkfs4oavvg", "user_id": "test", "status": "exported", "total": 20000, "success": 20000, "failure": 0, "result_url": "https://example-link-to-results.xlsx"}Dosya yükleme istek URL’i
POST https://api.ekycpro.com/v1/tasks
Dosya yükleme istek parametreleri
| Parametre | Açıklama |
|---|---|
file | file, Bir dosya yükleyin; her satır E.164 formatında bir numara içermelidir |
task_type | string, Görev tipi, “tg” olarak ayarlayın |
Görev durum sorgulama istek URL’i
POST https://api.ekycpro.com/v1/gettasks
Görev durum sorgulama istek parametreleri
| Parametre | Açıklama |
|---|---|
task_id | string, Görev oluşturma sırasında dönen görev kimliği |
Sonuç alanları
| Alan | Açıklama | Örnek |
|---|---|---|
Number | Phone number in E.164 format | +41798284651 |
telegram | Whether number has active Telegram account | yes, no |
Yanıt formatı
| Field | Description |
|---|---|
created_at | Timestamp when task was created |
updated_at | Timestamp of last task status update |
task_id | Unique task identifier |
user_id | ID of user |
status | Task status: pending: Queued and waiting processing: Currently processing exported: Results available for download |
total | Total phone numbers processed |
success | Numbers successfully identified |
failure | Numbers that failed processing |
result_url | (Optional) Download URL for results when status is exported |
Durum kodları
| Durum | Açıklama |
|---|---|
200 | charge, Request successful, task created or status retrieved |
400 | free, Bad request, invalid parameters or file format |
500 | free, Internal server error, retry later |