Quickstart
Sign up and Hedvi creates a project with a test key. Test emails are captured in your test inbox and never leave Hedvi, so you can start before you own a domain.
- Create an account at hedvi.dev/signup and copy the test key shown once.
- Send a request (any
fromaddress works in test mode):
curl -X POST https://api.hedvi.dev/emails \
-H "Authorization: Bearer hv_test_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: welcome-42" \
-d '{
"from": "Acme <onboarding@hedvi.dev>",
"to": "you@example.com",
"subject": "Hello from Hedvi",
"html": "<p>It works.</p>"
}'// npm install resend@6.39.0
// RESEND_BASE_URL=https://api.hedvi.dev
import { Resend } from "resend";
const resend = new Resend("hv_test_…");
const { data, error } = await resend.emails.send(
{ from: "Acme <onboarding@hedvi.dev>", to: "you@example.com", subject: "Hello from Hedvi", html: "<p>It works.</p>" },
{ idempotencyKey: "welcome-42" },
);# pip install resend==2.54.0
# RESEND_API_URL=https://api.hedvi.dev
import resend
resend.api_key = "hv_test_…"
email = resend.Emails.send({
"from": "Acme <onboarding@hedvi.dev>",
"to": "you@example.com",
"subject": "Hello from Hedvi",
"html": "<p>It works.</p>",
})The response is {"id": "…"}. The email appears in Test inbox with HTML preview, text, headers and attachments. It is a test email: nothing was delivered to an external mailbox.
Go live
- Add your domain under Domains and publish the DNS records. Hedvi checks them automatically and shows what it finds.
- Request live sending under Settings. A person reviews new senders before external mail is sent.
- Create a live key under Developers and send from your verified domain.