Integration guides
Block disposable email in your stack
Each guide has a drop-in code snippet plus stack-specific notes — where to put the API key, fail-open vs fail-closed, and how the error reaches your UI.
- Next.jsTypeScript
Drop a single Route Handler into your Next.js 15 / App Router project. Calls Piisend server-side so the API key never reaches the browser. Works with any auth library.
Read the guide → - DjangoPython
Add a form validator that calls Piisend before saving the user. Works in Django 3, 4, and 5. Pairs cleanly with django-allauth or Django's built-in auth.
Read the guide → - SupabaseTypeScript (Deno)
Use a Supabase Edge Function as an Auth Hook. Calls Piisend before Supabase creates the user — rejects signup at the auth layer.
Read the guide → - Better AuthTypeScript
Better Auth fires a databaseHooks.user.create.before hook for every signup path — email/password, Google OAuth, magic link. One check covers them all.
Read the guide → - ClerkTypeScript
Use a Clerk webhook on user.created or validate in your custom signup API before calling Clerk. Two patterns depending on when you want to block.
Read the guide → - Auth0JavaScript
Use an Auth0 Pre User Registration Action. Runs synchronously before Auth0 creates the user — return api.access.deny() to reject at the auth layer.
Read the guide → - Firebase AuthTypeScript
Use a Firebase Cloud Function with the beforeUserCreated blocking trigger. Throw HttpsError to reject before Firebase persists the user.
Read the guide → - AWS CognitoPython
Attach a Lambda to the PreSignUp trigger of your Cognito User Pool. The Lambda runs synchronously and can throw to reject before the user record is written.
Read the guide →
Page 1 of 2 · Showing 1–8 of 12
Don't see your stack?
Point your AI assistant at our integrate.md — written for LLMs with the rules and prompts to wire Piisend into any codebase.
Read https://piisend.com/integrate.md and follow the
instructions on that page.FAQ
Where should the disposable email check run?
On your server, in the signup handler or an auth provider hook (Auth0 Action, Cognito PreSignUp, Firebase blocking function). Never in the browser: the API key would be exposed and the check easy to skip.
What if Piisend is slow or unreachable?
Every guide fails open: if the call errors or times out, the signup goes through. For high-fraud products you can fail closed and show a retry message instead.
Which endpoint do the guides call?
POST /api/v1/intelligence/email, which returns signals.disposable. For a full allow / review / block verdict with forwarding, phishing, MX, domain age and typo checks, call GET /api/v1/check/email/{email}.
Can I test an address before writing code?
Yes. Paste it into the free email checker or the disposable email checker. They run the same checks without an API key.