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

Forward Message

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

Forwards a specific mailbox message to new recipients via the email provider. The configuration must have SendEnabled set to true, and the caller must be able to read the message (403 otherwise). At least one To recipient is required. The email service appends the forwarded message (its header and body) after HtmlBody. Subject defaults to "Fwd: " and the original's subject. KeepAttachmentIds picks which original attachments to carry: null carries every non-inline one, an empty list none. New attachments go in the Attachments array, practice documents in PracticeDocumentCodes. Set ScheduledAt to schedule the forward instead (202). 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)
{
  "toRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "ccRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "bccRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "subject": "string",
  "keepAttachmentIds": [
    "string"
  ],
  "htmlBody": "string"
}

Responses

202 Accepted
400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden
404 Not Found