Email from a Replit app, with the key in Secrets.
Replit keeps credentials in Secrets, which reach your running app as environment variables. Store NOTIX_API_KEY there, and have the Replit Agent or your own code send from the server with notix-js in a Node app or notix-sdk in a Python one.
Send an email from Replit.
import os
from notix import Notix
notix = Notix(os.environ["NOTIX_API_KEY"])
resp, _ = notix.emails.send(payload={
"from": "Acme <hello@acme.com>",
"to": "maria@example.com",
"subject": "Welcome to Acme",
"html": "<p>Glad you are here.</p>",
})
print(resp["emailId"])
import { Notix } from "notix-js";
const notix = new Notix(process.env.NOTIX_API_KEY!);
export async function POST(request: Request) {
const { to } = await request.json();
const { data, error } = await notix.emails.send({
from: "Acme <hello@acme.com>",
to,
subject: "Welcome to Acme",
html: "<p>Glad you are here.</p>",
});
if (error) return Response.json({ error }, { status: 502 });
return Response.json({ id: data?.emailId });
}
The from address must be on a domain you have verified in Notix. Step by step: Connect your AI.
Ask for a server-side send, with the key in the environment.
When Replit Agent writes the email code for your app, ask for it in a server route or server function that reads NOTIX_API_KEY from the environment. A key in client code is public the moment the app is deployed.
The from address must be on a domain you have verified in Notix. Until it is, check sends with the Notix-Dry-Run: true header, which sends nothing.
Give an AI app the Notix tools.
Notix hosts an MCP server at https://app.usenotix.dev/api/mcp. To have an AI app call Notix directly while you work, give it this address and header from Connect your AI.
Ask for a dry run first: Notix checks the send and sends nothing. A Live key sends from one verified domain, asks for approval before a send to more than 50 people by default, and cannot delete anything or change billing.
URL: https://app.usenotix.dev/api/mcp
Header: Authorization: Bearer <your Notix API key>
Questions, answered.
Where should the email code go?
How do I keep the key safe on Replit?
Can the AI send to real people by mistake?
Keep reading.
Connect your AI
Give Claude, ChatGPT or Cursor a key, and set the limits it works within.
IntegrationsIntegrations
Notix inside the frameworks, platforms and AI coding tools you already use, from Next.js and Laravel to Supabase, Vercel and Cursor.
ProductEmail API
One JSON API for transactional and marketing email: send, batch, schedule, webhooks, typed SDKs.
NotixPricing
A free plan with no card, and Pro at $15 a month for 50,000 emails. Only sent volume is metered.
Send your first email in five minutes.
Verify a domain, copy an API key, make one call. The free plan does not ask for a card.