Quickstart
Verify your email and complete signup. 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.
- Request a signup link, verify your mailbox, complete the form and copy the test key shown once. The account guide explains the verification and document review.
- 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@example.com>",
"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@example.com>", 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@example.com>",
"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.
Prefer help from your coding agent? Copy the setup prompt.
Go live
- Add your domain under Domains, publish the ownership TXT record, and choose Check now.
- Publish the DKIM and MAIL FROM records that appear after the ownership check, then choose Check now again. Sending activates automatically once DNS and Amazon SES confirm your domain. No separate application or manual approval is needed.
- Create a live key under Developers and send from your verified domain.