⬤ This endpoint uses the Email Server API Key (es_*)
Send Email
Send a single email. Supports raw content OR template-based emails. Provide subject + htmlBody/textBody for raw, or templateId/templateAlias for templates.
POST
/emailSend a single email. Supports raw content OR template-based emails. Provide subject + htmlBody/textBody for raw, or templateId/templateAlias for templates.
Request Body
application/json{}
from* - The sender email address. Must be a verified sender.to* - Recipient email address or array of addresses.Response
Send a request to see the response
Code Examples
curl \
-X POST \
"https://api.usetransactional.com/email" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-H "Accept: application/json"Example Response
200Email queued successfully
{
"to": "user@example.com",
"submittedAt": "2024-01-15T10:30:00Z",
"messageId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"errorCode": 0,
"message": "OK"
}