{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/notify/v1/email-request.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Request to send an email\n",
  "properties": {
    "address": {
      "description": "E-mail address to which the message should be sent\n",
      "format": "email",
      "type": "string"
    },
    "content": {
      "description": "Content of the e-mail as **markdown**, will be rendered to HTML before\nthe email is sent. Notice that markdown allows for a few HTML tags, but\nwon't allow inclusion of script tags and other unpleasantries.\n",
      "maxLength": 102400,
      "minLength": 1,
      "type": "string"
    },
    "link": {
      "additionalProperties": false,
      "description": "Optional link that can be added as a button to the email.\n",
      "properties": {
        "href": {
          "description": "Where the link should point to.\n",
          "format": "uri",
          "maxLength": 1024,
          "minLength": 1,
          "type": "string"
        },
        "text": {
          "description": "Text to display on link.\n",
          "maxLength": 40,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "text",
        "href"
      ],
      "type": "object"
    },
    "replyTo": {
      "description": "Reply-to e-mail (this property is optional)\n",
      "format": "email",
      "type": "string"
    },
    "subject": {
      "description": "Subject line of the e-mail, this is plain-text\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "template": {
      "default": "simple",
      "description": "E-mail html template used to format your content.\n",
      "enum": [
        "simple",
        "fullscreen"
      ],
      "type": "string"
    }
  },
  "required": [
    "address",
    "subject",
    "content"
  ],
  "title": "Send Email Request",
  "type": "object"
}