The same engine, behind your own code
Programmatic access to the same engine the dashboard uses, with interactive documentation and test keys.
Authentication
Every request carries your API key in the X-API-Key header. Keys are created and rotated from the API portal by the billing owner; rotating a key revokes the old one immediately.
A key prefixed b4v_live_ draws on your credit balance. A key prefixed b4v_test_ returns deterministic verdicts and never charges a credit — build the whole integration before you spend one.
Endpoints
Example call
curl -H "X-API-Key: b4v_live_..." -H "Content-Type: application/json" \
https://api.b4valid.com/api/v1/verify \
-d '{"address":"hello@example.com"}'{
"address": "hello@example.com",
"verdict": "valid",
"confidence": 94,
"decidedBy": "smtp_mailbox",
"disposable": false
}Webhooks
Webhooks fire when a batch completes or fails, and they include the job id, verdict totals and a signed payload. The payload is signed; verify the signature header against your endpoint secret before trusting the body.
- Delivered on batch completion, and on any batch that fails before completion.
- Retried five times with exponential backoff — a 2xx from your endpoint stops the retries.
- Send a test event from the API portal without running a job.
Limits & health
Errors
An error never charges a credit. Where a verdict is possible, you get the verdict rather than the error.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The address field was missing or malformed. No credit charged. |
| 401 | invalid_key | The key is wrong, revoked or rotated. No credit charged. |
| 402 | insufficient_credits | The balance cannot cover the job. Top up, or reduce the batch. |
| 422 | unverifiable | The domain has no MX record at all. Returned as Undeliverable. |
| 429 | rate_limited | Over your plan's request rate. Back off and retry — the Retry-After header says for how long. |
| 5xx | engine_error | Our fault. Nothing is charged, and the job can be replayed safely. |