HubSpot · JSON Structure

Marketing Emal Api Email Message Structure

The email message configuration

Type: object Properties: 6 Required: 1
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

EmailMessage is a JSON Structure definition published by HubSpot, describing 6 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

to from sendId replyTo cc bcc

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/marketing-emal-api-email-message-structure.json",
  "name": "EmailMessage",
  "description": "The email message configuration",
  "type": "object",
  "properties": {
    "to": {
      "type": "string",
      "description": "The recipient's email address",
      "example": "recipient@example.com"
    },
    "from": {
      "type": "string",
      "description": "Override the from address (must be verified)",
      "example": "noreply@yourcompany.com"
    },
    "sendId": {
      "type": "string",
      "description": "A unique ID to prevent duplicate sends",
      "example": "unique-send-id-123"
    },
    "replyTo": {
      "type": "array",
      "description": "Reply-to email addresses",
      "items": {
        "type": "string"
      },
      "example": [
        "support@yourcompany.com"
      ]
    },
    "cc": {
      "type": "array",
      "description": "CC email addresses",
      "items": {
        "type": "string"
      },
      "example": [
        "jsmith@example.com"
      ]
    },
    "bcc": {
      "type": "array",
      "description": "BCC email addresses",
      "items": {
        "type": "string"
      },
      "example": [
        "jsmith@example.com"
      ]
    }
  },
  "required": [
    "to"
  ]
}