ForHosting KIT · Notifications & Flows

Send a transactional email

POST /notify/email sends a single message from your own domain and hands you back a task_id while the message actually leaves the queue. It exists for the moment a password reset, an order confirmation or a login code has to reach an inbox within seconds, not for marketing blasts.

● StablePer request + per email$0.002
Use it from WebAPIEmailApp soonTelegram soon

Built for the message that can't wait

Application email splits into two very different jobs: bulk newsletters that tolerate a delay, and transactional messages — password resets, receipts, verification codes — that a user is staring at their inbox waiting for. This endpoint is built only for the second job. It skips list management, unsubscribe pages and campaign scheduling entirely, so the request path stays short and the delivery stays fast.

What the call actually does

You send recipient, subject, a plain-text or HTML body, and the from address on your verified domain; the API validates the payload, queues the send and immediately returns a task_id. The real delivery attempt happens on our global edge a moment later, and you get the outcome back through a signed webhook (recommended for anything running unattended) or a signed link that stays valid for 24 hours. Nothing about the process is synchronous, which is precisely why it holds up under bursts.

Domain authentication, not a shared reputation

Because you send from your own domain, the mail carries your name in the inbox, not a generic sender shared with strangers. That single fact is what separates a transactional API worth trusting from a marketing tool bolted onto a REST endpoint: your domain's sending reputation stays yours to build, protect or repair, and you're not sitting behind someone else's abuse history.

Delivery events close the loop

Sending is only half the story — the webhook payload also reports what happened after the send: accepted, delivered, bounced or failed. That event is what lets your system retry intelligently, flag a bad address, or simply mark an order as confirmed once it clears the recipient's server, instead of guessing based on silence.

Where it sits in an automated stack

A failed task is never billed — three retries happen automatically before you see a clear error, so you can wire this endpoint straight into a checkout flow, a signup form or an internal alert without wrapping it in your own retry logic first. It's one call in a pipeline, not a platform you have to configure.

Password reset links

A user requests a reset; your backend calls the endpoint the instant the token is generated, and the link is in their inbox before the page finishes redirecting them.

Order confirmations

The moment a payment clears, a confirmation with order details goes out from your own domain, and the delivery event tells you it actually landed.

One-time login codes

A magic-link or code-based sign-in sends the message the instant it's requested, keeping the whole authentication flow inside a few seconds.

Internal ops alerts

A background job that detects a failed payment or an inventory shortfall emails the on-call inbox directly, no dashboard required.

Is this free to use?

There's no free tier — free tiers get abused and slow everyone down. Access runs on a prepaid ForHosting KIT balance: top up from $10.00 (it never expires) and each request is charged at its published price, so a call with no balance returns HTTP 402. No subscription, no tokens, no invented credits, and a failed task is never charged.

How much does it cost?

$0.002 per request plus $0.0035 per email sent. A failed task is never charged.

Can I send from my own domain?

Yes, that's the whole point of the endpoint — messages send from a domain you've verified, not from a shared address.

How do I get the result — sync or async?

The call is asynchronous: you get a task_id immediately, and the outcome arrives via a signed webhook or a signed link valid for 24 hours.

What delivery events does it report?

Accepted, delivered, bounced and failed states are reported through the webhook so you can react to what actually happened after the send.

What happens if the send fails?

The system retries automatically up to three times; only after that does it return a clear error, and you're never charged for a failed task.

Can I send HTML and plain text together?

Yes, the payload accepts both an HTML body and a plain-text fallback in the same request.

How is this different from a bulk email tool?

It has no list management, no unsubscribe flows and no campaign scheduling — it's purpose-built for single, time-sensitive transactional messages, not marketing sends.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/notify/email

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, and soon from our app, email and Telegram.

curl -X POST https://api.kit.forhosting.com/notify/email \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"…"}'
{
  "input": "…"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "notify.email",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002
Per email$0.0035

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →