After creating a document send it to the recipient (straight away)
Configuring your new document to auto-send on generation is easy by just assigning a true value to the auto-send parameter in the createDocument input dictionary.
mutation createDocument {
createDocument(input: {
title: "This is my test document"
subTitle: "This is my subtitle"
coverPage: 0
showCoverPage: false
colorScheme: Color1
autoSend: true
recipients: [{
email: "[email protected]"
firstName: "John"
lastName: "Smith"
phone: "0499889988"
address: "123 Pitt Street Sydney NSW 2000"
}]
}) {
id
name
owner
}
}