# Get Rich-Text Email Content

Reads the complete body of a KlickTipp newsletter email built with the previous HTML editor: HTML, plain text, which of the two the email uses, the subject and a contentRevision the write takes back. Use it when get-email-editor-content reports emailEditor "rich-text"; a drag-and-drop email is refused. A sent or scheduled newsletter can be read too -- editable and blockers say whether and why a write would be refused -- so its body can be carried into a new draft with replace-email-editor-rich-text-content. Reads only; newsletter emails only. For a new newsletter, prefer the drag-and-drop editor: the block, design, template and publish tools work only with that one. editorUrl names the email for the tools and is not a link to open in KlickTipp; to show the email to a person, use contentUrl from get-newsletter.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "editorUrl": {
      "type": "string",
      "description": "Editor URL of the email, as get-email-editor-content returned it",
      "minLength": 12,
      "maxLength": 500
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "editorUrl"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "emailId",
    "newsletterId",
    "name",
    "subject",
    "emailEditor",
    "contentType",
    "html",
    "plain",
    "plainSource",
    "contentRevision",
    "editorUrl",
    "editable",
    "blockers"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "emailId": {
      "type": "integer"
    },
    "newsletterId": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "emailEditor": {
      "type": "string",
      "enum": [
        "rich-text"
      ]
    },
    "contentType": {
      "type": "string",
      "enum": [
        "html-and-plain",
        "plain-only"
      ]
    },
    "html": {
      "type": "string"
    },
    "plain": {
      "type": "string"
    },
    "plainSource": {
      "type": "string",
      "enum": [
        "derived",
        "custom"
      ]
    },
    "contentRevision": {
      "type": "string"
    },
    "editorUrl": {
      "type": "string",
      "description": "Names this email for the tools; not a link to open in KlickTipp. To show the email to a person, use contentUrl from get-newsletter."
    },
    "editable": {
      "type": "boolean"
    },
    "blockers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
```

