Email MarketingTransactional Emails
Send Transactional Email
Sends caller-provided HTML to one recipient using a verified project domain. The returned ID identifies the send in the transactional email log.
Authorization
Authorization AuthorizationBearer <token>
In: header
Path Parameters
projectIdrequiredstring
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
categorystring
Optional label for filtering sends, such as password-reset.
fromrequiredstring
Sender address on a verified project domain.
Format: email
fromNamestring
htmlrequiredstring
The complete HTML to send, generated by your application.
idempotencyKeystring
Reuse the same key and body when retrying one send.
subjectrequiredstring
textstring
Optional plain-text alternative.
torequiredstring
One recipient email address.
Format: email
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/projects/string/transactional-emails" \ -H "Content-Type: application/json" \ -d '{ "from": "user@example.com", "html": "string", "subject": "string", "to": "user@example.com" }'{ "id": "string"}