Academy › Email Verification API Developer Certification › Lesson 3 of 3
Bulk checks, webhooks and security
Single, bulk or webhook?
- Single checks: forms and one-off lookups, answered in seconds.
- Bulk jobs: large lists. Start a job, then collect results when it finishes, instead of thousands of single calls.
- Webhooks: the service calls your address when something happens (a job finishes), so you do not have to keep asking.
Securing webhooks
- Accept only https addresses.
- Check the signature on every webhook (for example an HMAC of the body sent in a header) before trusting it.
- Respond quickly and process the work in the background.
Good habits
- Cache recent answers so the same address is not checked many times a day.
- Log errors, not full personal data.
- Rotate the API key if it may have leaked.
Key idea: use bulk jobs for lists, webhooks to be told when they finish, signatures to trust webhooks, and caching to save credits.