Skip to content

Validate addresses before SendGrid sends them

SendGrid delivers the mail your application hands it. Add a 1lookup.dev check before that handoff: when a user signs up or changes their email, call the REST API, and only send to addresses that come back deliverable.

Step-by-step guide
HTTP request
curl -X POST https://api.1lookup.dev/v1/email-validation \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"jane.doe@example.com"}'
[01/Setup]

Connect SendGrid in 4 steps

This lives in your application code, not in SendGrid. SendGrid's event webhook can also feed the loop: when it reports a bounce, mark the address in your database and re-validate before you try again. For marketing lists, export contacts and use bulk upload.

  1. 1

    Create a 1lookup.dev API key and add it to your application's secrets.

  2. 2

    Before the code that calls SendGrid, POST the address to https://api.1lookup.dev/v1/email-validation.

  3. 3

    Send only when the result meets your rule, and store the status with the user record.

  4. 4

    Point SendGrid's event webhook at your service and re-validate addresses that bounce.

[02/Recipes]

What to build with SendGrid

Validate at signup

Call Email Validation when the signup form is submitted and ask the user to correct the address if it is invalid, before any confirmation email is sent.

Audit sending domain setup

Run Email Authentication Check on your sending domain after any DNS change to confirm the SPF, DKIM and DMARC records are still in place.

Block throwaway signups

Use Signup Check with the email and IP to get an allow, review or block verdict before you send a welcome email to an account that will never be used.

SendGrid is a trademark of its owner. This guide describes how to connect using our MCP server and REST API. 1lookup.dev is not affiliated with or endorsed by SendGrid.

[ Validate ][ Enrich ]
[Get started]

Run your first lookup in two minutes

Create a key, pick a plan and call any product in the catalog. Plans start at $29 a month.

[ Screen ][ Scrape ]