aslio.

Node.js email API

Send email from Node.js in one HTTP call.

No SDK to install and no mail server to run. Aslio is a plain REST endpoint, so the built-in fetch in modern Node is all you need — no package to install and no dependency to audit. You pay ₹0.02 a message — about $0.21 per 1,000 emails, with no monthly platform fee, no per-seat charge and no minimum commitment.

In short

To send transactional email from Node.js, POST to `https://aslio.asli.one/v1/email/send` with an Authorization: Bearer API key and a JSON body containing from, to, subject and html. Aslio charges ₹0.02 a message — about $0.21 per 1,000 — with no monthly fee. Add an Idempotency-Key header and the request is safe to retry.

Facts and prices last checked .

$0.21
per 1,000 emails
₹0
monthly platform fee
0
seats to buy
587
SMTP relay, same price

Code

Sending one email from Node.js

This uses the global fetch available in Node 18 and later, so there is nothing to npm install. The from address must be on a domain you have verified, so the message is signed with your own DKIM rather than a shared pool.

Node.jsaslio.asli.one/v1
const res = await fetch("https://aslio.asli.one/v1/email/send", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ASLIO_API_KEY}`,
    "Content-Type": "application/json",
    // Retry this request as often as you like — a duplicate
    // replays the original response instead of sending twice.
    "Idempotency-Key": `invoice-${invoiceId}`,
  },
  body: JSON.stringify({
    from: "Acme <billing@acme.com>",
    to: ["customer@example.com"],
    subject: "Your invoice is ready",
    html: "<p>Hello — your invoice is attached.</p>",
    statusCallbackUrl: "https://acme.com/hooks/aslio",
  }),
});

if (!res.ok) throw new Error(`Aslio ${res.status}`);
const { id, status } = await res.json();

Code

Receiving delivery events in Express

Aslio posts SENT, DELIVERED, BOUNCED, COMPLAINED and FAILED events to your statusCallbackUrl. Use express.raw on this route: express.json parses the body first, and the signature covers the exact bytes that were sent.

Node.js · Expressaslio.asli.one/v1
import crypto from "node:crypto";
import express from "express";

const app = express();

app.post("/hooks/aslio", express.raw({ type: "application/json" }), (req, res) => {
  const timestamp = req.get("X-Aslio-Timestamp") ?? "";
  const received = Buffer.from(req.get("X-Aslio-Signature") ?? "");
  const expected = Buffer.from(
    crypto
      .createHmac("sha256", process.env.ASLIO_WEBHOOK_SECRET)
      .update(timestamp + "." + req.body)
      .digest("hex"),
  );

  if (received.length !== expected.length || !crypto.timingSafeEqual(received, expected)) {
    return res.sendStatus(401);
  }
  // The timestamp is in milliseconds. Refuse anything older than five minutes.
  if (Math.abs(Date.now() - Number(timestamp)) > 300_000) return res.sendStatus(401);

  const event = JSON.parse(req.body);
  if (event.status === "BOUNCED") markAddressBad(event.toAddress);
  res.sendStatus(200);
});

Code

Sending to a list

The same key and the same wallet. Merge variables are per recipient.

HTTPaslio.asli.one/v1
POST /v1/email/send-batch
{
  "from": "Acme <news@acme.com>",
  "subject": "Hi {{firstName}}, your invoice is due",
  "html": "<p>Hi {{firstName}} — {{plan}}</p>",
  "recipients": [
    { "email": "priya@example.com",
      "variables": { "firstName": "Priya", "plan": "Pro" } }
  ]
}

// Up to 1,000 recipients per call. Each gets its own message
// row, its own charge and its own unsubscribe link. Suppressed
// addresses are skipped and reported, never silently dropped.

What you get

Common problems when sending from Node.js

What usually goes wrong in this language, and what to do about it.

Serverless functions stop early

On Lambda or Vercel the function can freeze as soon as it responds. await the send before you return, or the request may never finish.

A stalled request has no quick timeout

Pass signal: AbortSignal.timeout(10_000) to fetch. Without it, one slow connection can hold a request open for minutes.

Signature checks that always fail

Almost always a body parser running first. A re-serialised JSON body is not byte-identical, so the HMAC cannot match.

Retrying after a 429

Wait briefly and resend with the same Idempotency-Key. A new key on each attempt defeats the protection against double sends.

Honestly

Before you pick this

  • We hold no SOC 2 report and no ISO 27001 certification. If your procurement requires one, we will not pass it today and would rather say so now.
  • SMS and WhatsApp are still in build. Email is the channel that ships today. Do not pick Aslio this week for a multi-channel launch next week.
  • Support runs 09:30–18:30 IST (UTC+5:30). That overlaps European and Gulf afternoons and the edges of the North American day. There is no 24/7 desk.
  • We are a young, small company — Asli One Global was incorporated in February 2026. That is a legitimate thing to weigh for a critical dependency.

FAQ

Frequently asked questions

How do I send an email from Node.js?

POST to https://aslio.asli.one/v1/email/send with an Authorization: Bearer header carrying your API key, and a JSON body of from, to, subject and html. This uses the global fetch available in Node 18 and later, so there is nothing to npm install. The full example is above.

Do I need to install a package?

No. Aslio is a plain REST API, so the built-in fetch in modern Node is all you need — no package to install and no dependency to audit. There is no SDK to keep up to date and no dependency to audit.

Can I call Aslio from Next.js or an edge runtime?

Yes, from server code anywhere fetch exists. Never call it from browser code, because that would expose your API key.

Can I keep using Nodemailer?

Yes. Create an SMTP transport for aslio.asli.one on port 587, with any username and your API key as the password. Your Nodemailer code stays the same.

How much does it cost?

₹0.02 per email, which is roughly $0.21 per 1,000 messages, with no monthly platform fee, no per-seat charge and no minimum commitment. You top up a prepaid wallet and spend it down. An optional Pro plan at ₹999 a month raises the API rate limit to 100 requests a second and adds priority support.

Send your first Node.js email in ten minutes.

Top up a wallet and send. No monthly platform fee, no seat charge, no minimum commitment — a hundred test emails costs about two rupees.

Asli One Global Private Limited · CIN U62011TN2026PTC190105