Send Email

POST /tenants/{tenant}/mailbox/send

Sends a composed email with automatic routing. If configCode is provided, sends via that mailbox. If omitted, uses the tenant's default mailbox. If no mailboxes are configured, sends via the platform default using the tenant's ReplyTo settings.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

configCode query string

Request Body*

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

Responses

200 OK
401 Unauthorized – Invalid or missing API key
404 Not Found