Represents a document to be attached to a template via a Base64-encoded string attachment. This is the best option for maximum security but there is a 10MB size limit for the entire creation request. Requests attaching larger files should use IDocumentFromUri or add attachments via createTemplateDocument after creating the template.

interface IDocumentFromData {
    data: string;
    name: string;
}

Properties

Properties

data: string

Base64-encoded file data.

name: string

A name for the attachment.