Integrations
Connect Samva to your stack, your auth provider, your ORM, and the frameworks you already use.
Use Samva from your framework's server-side code, an authentication callback, or an existing service. Anything that can make an HTTP request can use the REST API.
Send Email from Your Framework
Start with the handler your application already uses. Each guide includes SDK setup and links to its cookbook and runnable example.
| Framework | Where the send runs | Guide |
|---|---|---|
| TanStack Start | Authenticated server route; server functions for app forms | Send email with TanStack Start |
| Next.js | Server Actions and Route Handlers | Send email with Next.js |
| Hono on Cloudflare Workers | Worker request handler | Send email with Hono |
| Astro | Actions and API endpoints | Send email with Astro |
| SvelteKit | Form actions and endpoints | Send email with SvelteKit |
New to Samva? Send your first email covers account setup and checking delivery before you integrate it into your application.
Receive and Reply to Email
Both runnable examples ship with a cookbook.
| Goal | Guide | Example |
|---|---|---|
| Answer inbound email in the same conversation | Cookbook | inbound-email-replies |
| Goal | Guide | Example |
|---|---|---|
| Give an agent its own mailbox | Give an agent an inbox | mailbox-agent |
Authentication, Templates, and Tools
Executor
Add Samva's hosted MCP server or OpenAPI description to a governed agent tool catalog.
Import to Postman
Load Samva's official API collection into Postman.
Verify webhooks
Verify the signature on Samva's outbound webhooks.
React Email
Render React Email templates yourself and send the HTML with Samva, as an alternative to Samva-managed email templates.
Email SDK
Use Samva with provider-independent routing, retries, and fallback.
Effect SDK
Send email from Effect with typed errors, Schedule retries, and Layers.
Better Auth
Send Better Auth transactional email through Samva.
Prisma
Send transactional email from Prisma order and domain events.
Auth.js
Send Auth.js and NextAuth magic-link email through Samva.
Supabase Auth
Send Supabase Auth emails through a signed Send Email Hook.
Clerk
Send Clerk auth and lifecycle email through Samva webhooks.