Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- The API key travels as the api_key query parameter on every call.
- A credit is used per validated email, never for an ‘unknown’ result. Test without credits using the sandbox addresses in the Sandbox Mode docs.
- Rate limit on validate: 80,000 requests per 10 seconds (100,000 for ZeroBounce ONE).
- Bulk file validation (sendfile, filestatus, getfile, deletefile) lives on a different host, bulkapi.zerobounce.net, and the batch endpoint takes api_key in its JSON body; neither is in this entry.
Endpoints
Validate one email
- Takes 1 to 30 seconds. Slow or greylisting mail servers come back as unknown, which costs nothing; retry later or use the bulk file API.
Get credit balance
- A Credits value of -1 means the API key is invalid.