Preview documentation: API shapes, DNS values, and code examples are illustrative until a backend contract is published.
Projects
Each project owns its own keys, domains, templates, and message records.
Environments
Test and Live are separate views. Switch the environment in the dashboard header.
Parameters
| Name | Description |
|---|---|
project_id | Identifier of the selected project. |
environment | Test or Live scope. |
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."
}
}