A draft is a message that has not been sent yet.
Properties
Property | Type | Description |
---|---|---|
| String | ID of the draft |
| Channel that will be used to send the message. | |
| Array of | List of recipients the draft is addressed to. |
| Array of (optional) | List of recipient in copy of the draft. |
| Array of (optional) | List of recipients in blind copy of the draft. |
| String (optional) | Subject of the draft. |
| Object | |
| String | Body of the draft. |
| String | Content type of the
. Can be either
or
. |
| Array of | List of attachments in the draft. |
| Boolean | Flag which determines if the draft is editable. |
Draft vs Message
The Plugin SDK makes the distinction between a Draft message and a Message.
While they have similar properties, the plugin SDK can interact with a Draft by creating and updating them.