Quickstart
Create an account, verify a domain and send your first email.
This guide takes you from a new account to a delivered email.
1. Create an account
Sign up at app.usend.et and confirm your email address from the link we send you. Your organization can't send until at least one member has a verified email address.
New organizations start on the Free plan. If your organization starts in the sandbox, it can send only to its own verified team members until you verify a sending domain in the next step; then it can send to anyone. See Plans and limits.
2. Add and verify your domain
Open Domains, add the domain you want to send from (for example acme.com) and publish the DNS records shown in the dashboard:
| Record | Name | Type | Value |
|---|---|---|---|
| DKIM | usk3m9q2xa._domainkey (the name is unique to your domain too) | TXT | v=DKIM1; k=rsa; p=MIIB... (unique to your domain) |
| Return path | send | CNAME | send.umta.et |
| Return path (Amazon SES) | send-ses | CNAME | send-ses.umta.et |
| DMARC (recommended) | _dmarc | TXT | v=DMARC1; p=none; rua=mailto:[email protected]; |
Then click Verify. Auto configure can publish the records for you at Cloudflare, GoDaddy and other DNS hosts that support Domain Connect; the ⋯ menu copies or emails the instructions for anyone else. See Verify a domain for details.
3. Create an API key
Open API Keys and create a key. Copy it right away: the token (it starts with us_) is shown only once. Keep it in an environment variable:
export USEND_API_KEY="us_123456789"4. Send an email
Send from an address on your verified domain to any recipient (for a first test, send to yourself).
curl -X POST https://api.usend.et/emails \
-H "Authorization: Bearer $USEND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Hello from usend",
"html": "<p>It works!</p>"
}'// npm install @usend/node
import { Usend } from '@usend/node';
const usend = new Usend(process.env.USEND_API_KEY);
const { data, error } = await usend.emails.send({
from: 'Acme <[email protected]>',
to: ['[email protected]'],
subject: 'Hello from usend',
html: '<p>It works!</p>',
});
console.log(data ?? error);# pip install usend
import os
from usend import Usend
usend = Usend(os.environ["USEND_API_KEY"])
email = usend.emails.send({
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Hello from usend",
"html": "<p>It works!</p>",
})
print(email["id"])package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Hello from usend",
"html": "<p>It works!</p>"
}`)
req, _ := http.NewRequest("POST", "https://api.usend.et/emails", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("USEND_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
out, _ := io.ReadAll(resp.Body)
fmt.Println(resp.Status, string(out))
}<?php
$ch = curl_init('https://api.usend.et/emails');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('USEND_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'from' => 'Acme <[email protected]>',
'to' => ['[email protected]'],
'subject' => 'Hello from usend',
'html' => '<p>It works!</p>',
]),
]);
echo curl_exec($ch);The response contains the ID of the new email:
{ "id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c" }Or send with SMTP
If your app or framework already speaks SMTP, point it at uSend and keep your code: host smtp.usend.et, port 587 (STARTTLS) or 465 (TLS), username usend, and your API key as the password. See Send with SMTP for settings and examples.
5. Check the result
The email shows up under Emails in the dashboard. You can also fetch it, including its latest status in last_event:
curl https://api.usend.et/emails/4ef9a417-02e9-4d39-ad75-9611e0fcc33c \
-H "Authorization: Bearer $USEND_API_KEY"