API Docs / Operations / Email - Mailbox / Send new email

Send new email

POST /tenants/{tenant}/email-configs/{code}/messages

Sends a new email from the tenant's connected mailbox. The configuration must have SendEnabled set to true. The sender (From) is determined by the email configuration. At least one To recipient and either HtmlBody or PlainTextBody is required. Attachments are supported via base64-encoded content.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

code* path string

Request Body*

{
  "subject": "string",
  "htmlBody": "string",
  "plainTextBody": "string",
  "to": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "cc": [
    {
      "email": "...",
      "name": "..."
    }
  ]
}

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key
404 Not Found