Saltar al contenido principal

DocumentSendSettingsInput

All settings for sending a document. Used by the send, sendBatchDocument, and addBulkDocument mutations.

Fields

FieldTypeRequiredDefaultDescription
groupIdID!YesGroup to send from
templateIdID!YesSource template ID
titleString!YesDocument title
recipients[RecipientInput]!YesList of recipients
sequentialSigningBooleanNoGroup defaultSend recipients in order
allowCopyingBooleanNoGroup defaultAllow copying final PDF
allowPrintingBooleanNoGroup defaultAllow printing final PDF
suppressEmailsBooleanNofalseSuppress all emails
tagStringNo""Tag for the document
pdfPasswordStringNoGroup defaultPassword for final PDF
retainPdfPasswordBooleanNoGroup defaultKeep password after completion
documentCCEmail[AWSEmail]NoGroup defaultAdditional CC emails
redirectStringNoGroup defaultURL to redirect recipients to after signing
senderFields[FieldInput]NoSender field values
participantFields[FieldInput]NoSigner field values

Validation Rules

  • groupId must be a base64-encoded ID that decodes to grp followed by a non-empty string suffix up to 60 characters.
  • templateId must be a base64-encoded ID that decodes to tpl followed by a UUID.
  • title maximum length: 1028 characters.
  • tag maximum length: 250 characters.
  • pdfPassword maximum length: 150 characters.
  • documentCCEmail may contain at most 10 email addresses.
  • recipients must contain fewer than 200 items.
  • senderFields must contain fewer than 1000 items.
  • participantFields must contain fewer than 1000 items.

These same rules apply when this structure is nested under document in sendBatchDocument and addBulkDocument.

Example

mutation SendDocument {
send(input: {
groupId: "Z3JwbGVnYWxlc2lnbxRldg=="
title: "Employment Contract"
templateId: "dHBsYjQ5YTg5NWQ="
recipients: [{
roleId: "cm9sZTEyMzQ1Ng=="
firstName: "Jane"
lastName: "Smith"
email: "jane@example.com"
order: 0
}]
})
}

Complete JSON structure

The send mutation accepts AWSJSON, so the input is a JSON object. This is the full structure with all fields:

{
"groupId": "Z3JwMTIzNDU2",
"templateId": "dHBsMTIzNDU2",
"title": "Employment Contract - Jane Smith",
"sequentialSigning": true,
"allowCopying": false,
"allowPrinting": false,
"suppressEmails": false,
"tag": "",
"pdfPassword": "",
"retainPdfPassword": false,
"documentCCEmail": [],
"redirect": "",
"recipients": [
{
"roleId": "cm9sMTIzNDU2",
"firstName": "Jane",
"lastName": "Smith",
"email": "jane@example.com",
"order": 0,
"phoneNumber": "+447700900000",
"experience": "ZXhwMTIzNDU2",
"scheduleId": "c2NoMTIzNDU2",
"message": "Dear {{signer_firstname}},\n\nPlease sign {{doc_name}}.\n\nContact {{sender_fullname}} with questions.",
"attachments": ["YXR0MTIzNDU2"],
"expiryDate": "2026-12-31T09:00:00.000Z",
"timeZone": "Europe/London",
"ccEmail": "manager@example.com",
"ccFirstName": "Bob",
"ccLastName": "Jones",
"ccMessage": "For your records.",
"ccIncludeLink": true
}
],
"senderFields": [
{ "id": "ZWxlMTIzNDU2", "value": "Acme Corp" }
],
"participantFields": [
{ "id": "ZWxlNzg5MDEy", "value": "" }
]
}

Key notes:

  • roleId is optional. When provided, it is the base64-encoded template role ID that links the recipient to template fields.
  • Encoded IDs use fixed decoded prefixes: groupId=grp, templateId=tpl, roleId=rol, experience=exp, field id=ele, attachment id=att. groupId accepts any non-empty suffix up to 60 characters after grp. experience accepts any non-empty suffix after exp. scheduleId is the exception and decodes to sch followed by an integer.
  • message supports placeholders: {{signer_firstname}}, {{signer_lastname}}, {{sender_fullname}}, {{doc_name}}.
  • expiryDate is ISO 8601 or null for no expiry.
  • When optional fields are omitted, group-level defaults are used where available.
  • To skip a recipient, omit them from the array entirely.

A downloadable JSON Schema is available for editor autocomplete and validation.

Export This Article

Save a copy of this page as PDF or plain text.