Quickstart
Send your first email in five minutes. You start with a test key, which needs no domain and no account approval, and swap in a live key when you are ready.
Send your first email
Create a test key
In the dashboard, switch to test mode, open API keys and create a key. It starts with
sk_test_and is shown once, so copy it now. Keep it in an environment variable rather than in your code:export SENDFERN_API_KEY="sk_test_..."
Install an SDK
Use the Node.js or Python SDK, or call the API directly with any HTTP client.
# Nothing to install: cURL ships with macOS, Linux and Windows.Send an email
curl https://api.sendfern.com/v1/emails \ -H "Authorization: Bearer $SENDFERN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "from": "Acme <onboarding@acme.com>", "to": "delivered@example.com", "subject": "Hello from Sendfern", "html": "<p>It works.</p>" }'Sendfern answers right away with the email it created. Sending happens in the background.
Response · 201 Created{ "id": "em_VNqV5JEIqYYeYbZRhbPrJ6", "object": "email", "mode": "test", "status": "queued", "from": "Acme <onboarding@acme.com>", "to": ["delivered@example.com"], "subject": "Hello from Sendfern", "created_at": "2026-11-28T10:19:04Z" }Check what happened
Fetch the email to see its status and timeline, or open it under Emails in the dashboard.
curl https://api.sendfern.com/v1/emails/em_VNqV5JEIqYYeYbZRhbPrJ6 \ -H "Authorization: Bearer $SENDFERN_API_KEY"
Go live
When your code works in test mode, three things let it send real email:
Get your account approved
New accounts start in review. You can use test mode while you wait.
Verify your domain
Add the domain your From addresses use under Domains and create the DNS records it shows. See Domains and DNS.
Swap in a live key
Create a key in live mode (
sk_live_) and put it inSENDFERN_API_KEY. Your code doesn't change.
Next steps
Learn every option in Send an email, make retries safe with idempotency keys, and get delivery events with webhooks.