I am currently trying to use the createDraft context API using the SDK (found here: https://dev.frontapp.com/reference/createdraft)
My code is below but the draft just doesn’t include the attachment. The draft is successful otherwise.
const createDraft1 = await.Front.createDraft({
to: ['acme@example.com'],
subject: "Your invoice for the order: ",
attachments: ['./X.pdf', 'path/X.pdf'],
content: {
body: 'Invoice attached.',
type: 'text'
}
});

