Contact Email

Description

An email message to a contact.

Properties

Property Description
body

The message to include in the body of the email.

buttonText

The text for the call-to-action button in the email body.

contactId

The identifier for the contact to whom the email message should be sent.

headline

The headline to use in the email body.

recipientEmails

Email address(es) to send the email to. If provided, must be an array of valid email addresses. Optional, but may be required by child schemas.

subject

The subject line for the email message.

type

The type of resource represented.

OpenAPI Schema

The following schema is based on OpenAPI 3.0 and is provided in our downloadable OpenAPI document.

{
  "description": "An email message to a contact.",
  "properties": {
    "body": {
      "description": "The message to include in the body of the email.",
      "maxLength": 10000,
      "type": "string"
    },
    "buttonText": {
      "description": "The text for the call-to-action button in the email body.",
      "maxLength": 25,
      "type": "string"
    },
    "contactId": {
      "allOf": [
        {
          "description": "The identifier for the contact to whom the email message should\nbe sent."
        },
        {
          "$ref": "#/components/schemas/Id"
        }
      ]
    },
    "headline": {
      "description": "The headline to use in the email body.",
      "maxLength": 100,
      "type": "string"
    },
    "recipientEmails": {
      "description": "Email address(es) to send the email to. If provided, must be an\narray of valid email addresses. Optional, but may be required by\nchild schemas.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "subject": {
      "description": "The subject line for the email message.",
      "maxLength": 200,
      "type": "string"
    },
    "type": {
      "allOf": [
        {
          "enum": [
            "email"
          ]
        },
        {
          "$ref": "#/components/schemas/Type"
        }
      ]
    }
  },
  "required": [
    "contactId"
  ],
  "title": "Contact Email Message",
  "type": "object"
}