Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

Create Reply Draft

POST /tenants/{tenant}/email-configs/{code}/messages/{messageId}/reply-draft

Creates a reply to a specific mailbox message as a draft in the message's conversation, addressed as the reply would be (set ReplyAll, or provide explicit ToRecipients/CcRecipients to override). Nothing is sent. The configuration must have ReadEnabled set to true; it does not need SendEnabled. The returned UniqueId is used for subsequent Update/Send/Discard calls. If the response includes ReconnectRequired=true, the OAuth connection needs to be re-authorised.

Requires: Create on Mailbox.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

code* path string
messageId* path string (uuid)
{
  "plainTextBody": "string",
  "replyAll": false,
  "toRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "ccRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "bccRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "htmlBody": "string"
}

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json
404 Not Found