Preview documentation: API shapes, DNS values, and code examples are illustrative until a backend contract is published.
Compose
Set a recipient, sender, subject, and HTML or text content.
Results
An accepted response would identify a message for status tracking. The frontend currently simulates this lifecycle.
Parameters
| Name | Description |
|---|---|
to | Recipient address. |
from | Verified sender address. |
subject | Message subject. |
text | Plain text fallback. |
Proposed code example
// Illustrative only — proposed interface
const response = await mailflow.messages.send({
projectId: "prj_example",
to: "recipient@example.com",
templateId: "tpl_welcome"
});Illustrative response
{
"id": "msg_example",
"status": "accepted",
"environment": "test"
}Error response example
{
"error": {
"code": "validation_error",
"message": "A required field is missing."
}
}