API Docs / Operations / Email - Mailbox / Create Draft

Create Draft

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

Creates a new draft via the email provider. The configuration must have ReadEnabled set to true. The returned UniqueId is used for subsequent Update/Send/Discard calls.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

code* path string
{
  "subject": "string",
  "htmlBody": "string",
  "plainTextBody": "string",
  "toRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "ccRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ]
}

Responses

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