Send email
Queues an email for delivery. Returns 202 Accepted immediately —
delivery is asynchronous. Use webhooks or poll GET /api/v1/emails/{id} for status.
The from address domain must be verified in your workspace.
Provide at least one of html or text. If html is provided without text,
Torpedo generates a plain-text version automatically. To opt out of a text part,
send text as an empty string.
Authorizations
Prefix tor_ followed by a base64url-encoded random key.
Obtain one from POST /api/v1/workspaces or POST /api/v1/auth/keys.
Headers
Optional unique key for deduplication. If a request with the same key has already been accepted, returns the original response without sending again.
Body
Provide at least one of html or text.
Sender address. Must use a verified domain. Accepts bare email or display name format.
"Acme <hello@myapp.com>"
"user@example.com"
"Welcome to Acme"
HTML body of the email. If text is omitted, Torpedo generates plain text from this field.
"<h1>Welcome!</h1><p>Thanks for signing up.</p>"
Optional plain-text body. Set to an empty string to send no text part.
"Welcome! Thanks for signing up."
Optional reply-to address
Response
Email queued for delivery