Quickstart
1. Get a demo key (no signup)
Section titled “1. Get a demo key (no signup)”DEMO_KEY=$(curl -sk https://email.ayzalai.com/v1/public/demo-key | jq -r '.key')2. Make a check
Section titled “2. Make a check”curl -sk -X POST https://email.ayzalai.com/v1/check/email \ -H "Content-Type: application/json" \ -H "X-API-Key: $DEMO_KEY" \ -d '{"email":"test@mailinator.com","client_ip":"1.2.3.4"}'You get back a JSON response with the verdict, MX details, canonical form, velocity count, and IP risk.
3. Sign up for a real key
Section titled “3. Sign up for a real key”500 checks/month free. No credit card.
https://guard.ayzalai.com/signup
4. Install the SDK
Section titled “4. Install the SDK”npm install @ayzalai/risk-guard
import { AyzalGuard } from ‘@ayzalai/risk-guard’; const guard = new AyzalGuard({ apiKey: process.env.AYZAL_GUARD_KEY }); const result = await guard.check(‘user@example.com’, { clientIp: ‘1.2.3.4’ }); if (result.verdict === ‘disposable’ || result.verdict === ‘invalid’) { throw new Error(‘Please use a real email address’); }
See Integrations for the full pattern.
