Integre ZapValida em sua aplicação com nossa API REST completa
Authorization: Bearer sua_api_key_aqui
Você pode gerar API Keys na seção API Keys do dashboard
Valida um único número de telefone
curl -X POST https://api.zapvalida.com/api/v1/validate \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+5511999999999",
"credential_id": "123"
}'Response:
{
"validation_id": "123",
"phone_number": "+5511999999999",
"status": "sent",
"is_valid": null,
"created_at": "2026-02-23T10:30:00Z"
}Valida até 100 números de telefone em uma única requisição
curl -X POST https://api.zapvalida.com/api/v1/validate/bulk \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"phone_numbers": [
"+5511999999999",
"+5511988888888",
"+5511977777777"
],
"credential_id": "123"
}'Response:
{
"batch_id": "batch_123",
"total_queued": 3,
"limited": false,
"status": "processing"
}Retorna informações sobre o uso mensal de validações
curl -X GET https://api.zapvalida.com/api/v1/usage \ -H "Authorization: Bearer sk_live_..."
Response:
{
"plan": "pro",
"monthly_limit": 5000,
"used_this_month": 1250,
"remaining": 3750,
"period_start": "2026-02-01T00:00:00Z",
"period_end": "2026-02-28T23:59:59Z"
}Registre uma URL para receber notificações de eventos
curl -X POST https://api.zapvalida.com/api/v1/webhooks \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"url": "https://seu-servidor.com/webhooks",
"events": [
"validation.success",
"validation.failed",
"limit.reached"
],
"description": "Webhook para processar validações"
}'Eventos disponíveis:
{
"event": "validation.success",
"validation_id": "123",
"phone_number": "+5511999999999",
"is_valid": true,
"status": "delivered",
"timestamp": "2026-02-23T10:30:00Z"
}
Headers:
X-Webhook-Signature: sha256=abc123...
X-Webhook-ID: webhook_123
X-Webhook-Timestamp: 2026-02-23T10:30:00ZValide a assinatura HMAC-SHA256 usando o secret fornecido ao registrar o webhook
| Plano | Requisições/min | Validações/mês |
|---|---|---|
| Gratuito | 10 | 100 |
| Pro | 60 | 5.000 |
| Enterprise | Ilimitado | 50.000 |
400 Bad Request
Parâmetros inválidos ou ausentes
401 Unauthorized
API Key ausente ou inválida
429 Too Many Requests
Limite de requisições atingido
500 Internal Server Error
Erro no servidor
Temos documentação completa, exemplos de código e suporte 24/7 para ajudá-lo