Exemplos Completos
Copie e execute estes exemplos cURL — substitua YOUR_KEY_HERE e os parâmetros.
Consultar saldo
Seção intitulada “Consultar saldo”curl -X GET "https://api.zelnum.com/api/v1/balance" \ -H "X-API-Key: YOUR_KEY_HERE"Enviar detecção
Seção intitulada “Enviar detecção”curl -X POST "https://api.zelnum.com/api/v1/detect" \ -H "X-API-Key: YOUR_KEY_HERE" \ -H "Content-Type: application/json" \ -d '{ "product": "YOUR_PRODUCT_SLUG", "country": "CN", "phones": ["+8613800138000", "+8613900139000"] }'Enviar arquivo
Seção intitulada “Enviar arquivo”curl -X POST "https://api.zelnum.com/api/v1/detect/file" \ -H "X-API-Key: YOUR_KEY_HERE" \ -F "product=YOUR_PRODUCT_SLUG" \ -F "country=CN" \ -F "file=@/path/to/numbers.txt"Consultar status da tarefa
Seção intitulada “Consultar status da tarefa”curl -X GET "https://api.zelnum.com/api/v1/tasks/xKj9aP3qLm7v" \ -H "X-API-Key: YOUR_KEY_HERE"Obter URL de download
Seção intitulada “Obter URL de download”curl -X GET "https://api.zelnum.com/api/v1/tasks/xKj9aP3qLm7v/result" \ -H "X-API-Key: YOUR_KEY_HERE"