Emails
Send an email
Queue a single email for delivery. The email is validated, queued, and sent asynchronously via the configured sending provider. Recipients on domains reserved for documentation and tests (example.com, example.net, example.org, and anything under .test, .example, .invalid or .localhost) are refused with 400; for test sends use an address at simulator.amazonses.com, such as success@simulator.amazonses.com.
post/v1/emails
Request
- Base URL: https://smtpfa.st/api
- URL: https://smtpfa.st/api/v1/emails
- Auth: HTTP bearer
Headers
Idempotency-Keystring
A unique key; up to 255 characters are used. Repeating a request with the same key and body within 24 hours returns the first result instead of sending again.
Request body
Example request
{
"template": {
"id": "order-confirmation",
"variables": {
"PRODUCT": "Desk lamp",
"PRICE": 49
}
},
"attachments": [
{
"content_type": "image/png"
}
],
"from": "hello@yourapp.com",
"subject": "Welcome!",
"tags": [
{
"name": "category",
"value": "welcome"
}
],
"headers": {
"X-Entity-Ref-ID": "abc-123"
},
"scheduled_at": "2026-04-10T14:00:00Z",
"category": "transactional",
"html": "<h1>Hello!</h1><p><a href=\"{{unsubscribe_url}}\">Unsubscribe</a></p>",
"text": "Hello! (plain text fallback)"
}Response
Email accepted. A repeat with the same Idempotency-Key and body returns the same id.
Example response
{
"id": "email_abc123"
}Changes
No recorded changes to this operation across all 1 revision of this API.