Pular para o conteúdo
Won.dev
DocumentaçãoReferência da API
API de enriquecimento

Verificar um endereço de e-mail

Se um endereço pode receber e-mails, sem enviar nada. Cobrado por veredito.

Checa se um endereço de e-mail pode receber mensagens, sem enviar nada para ele: verified (a caixa existe), risky (o domínio aceita qualquer endereço, então este não pode ser confirmado), invalid (não envie) ou unknown. Também informa se é um endereço de webmail e se é uma caixa compartilhada como info@. Custa US$ 0,003 por veredito; unknown é grátis. Cheque os endereços que você conseguiu em outro lugar antes de uma campanha: os e-mails que os outros endpoints retornam já são verificados.

  • Cobrança: email_verification US$ 0,003: Um veredito sobre um endereço: verified, risky ou invalid.
  • Modo: proxy (o que cada modo significa)

Uma chave de teste (won_test_...) responde a esta requisição com a mesma empresa e as mesmas pessoas de exemplo, sem custo.

POST
/enrich/email/verify

Autenticação

apiKey
headerAuthorizationBearer <chave de API>

Authorization: Bearer won_live_..., a key from the console.

Parâmetros de cabeçalho

Idempotency-Key?string

Any unique string. A retry with the same key and the same body returns the first response and is not charged again.

Tamanholength <= 255

Corpo da requisição

application/json
  1. body
email*string

The address to check, such as jane@example.com.

Tamanholength <= 254
max_cost?number

Spending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.

Intervalo0 < value
dry_run?boolean

If true, only return the maximum cost of this call. Nothing runs, nothing is charged.

Padrãofalse

Corpo da resposta

The result. With dry_run, only the maximum cost.

application/json
  1. response
data*

The verdict on the address.

query*

The request as it was understood: country names as codes, the default dates filled in.

notice*|

A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.

usage*

What this call was charged, and the balance left.

Requisição de exemplo
curl -X POST 'https://api.won.dev/v1/enrich/email/verify' \  -H 'Content-Type: application/json' \  -d '{  "email": "jordan.lee@northfield-home.example"}'
Resposta de exemplo
{  "data": {    "email": "jordan.lee@northfield-home.example",    "status": "verified",    "webmail": false,    "shared_mailbox": false  },  "query": {    "email": "jordan.lee@northfield-home.example"  },  "notice": null,  "usage": {    "unit": "email_verification",    "records": 1,    "already_paid": 0,    "cost": 0.003,    "balance": 48.997,    "replayed": false  }}

Última atualização em