RecipientInput
Recipient details when sending a document. Used within DocumentSendSettingsInput.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
roleId | ID | No | — | Optional base64-encoded role ID from the template. Use it to link a recipient to template fields, order, and experience when needed |
firstName | String | No | — | Recipient's first name |
lastName | String | No | — | Recipient's last name |
email | AWSEmail! | Yes | — | Recipient's email address |
order | Int! | Yes | — | Send order for sequential signing (0-indexed), and/or to get template role if roleId not used |
phoneNumber | String | No | "" | Phone number (E.164 format) |
expiryDate | AWSDateTime | No | null | When the invitation expires (ISO 8601). Null for no expiry |
schedule | [ScheduleItemInput] | No | — | Inline custom reminder schedule. Use this or scheduleId, not both |
scheduleId | ID | No | — | Base64-encoded preset schedule ID |
message | String | No | "" | Email message body. Supports placeholders: {{signer_firstname}}, {{signer_lastname}}, {{sender_fullname}}, {{doc_name}} |
attachments | [ID] | No | — | Base64-encoded attachment IDs to include |
experience | ID | No | — | Base64-encoded experience value for the signing page. It must decode to exp plus a non-empty suffix |
timeZone | String | No | — | Recipient's time zone (IANA format, e.g. Europe/London) |
ccFirstName | String | No | — | CC contact first name |
ccLastName | String | No | — | CC contact last name |
ccEmail | AWSEmail | No | — | CC contact email address |
ccMessage | String | No | — | CC message text |
ccIncludeLink | Boolean | No | — | Include signing link in CC email |
Validation Rules
firstNamemaximum length:60characters.lastNamemaximum length:60characters.emailmaximum length:75characters.phoneNumbermaximum length:120characters.messagemaximum length:8000characters.roleIdmust decode torolfollowed by a UUID.experience, when supplied, must be base64-encoded and decode toexpfollowed by a non-empty string suffix. The suffix does not need to be a UUID.scheduleId, when supplied, must decode toschfollowed by an integer. Empty string is also allowed.attachmentsentries must decode toattfollowed by a UUID.- If
scheduleis supplied, each item uses the limits documented in ScheduleItemInput.
Skipping recipients
To skip a recipient (e.g. a witness that isn't needed), omit them from the recipients array entirely. The remaining recipients should have their order values re-indexed starting from 0. Template-level fields (senderFields, participantFields) are unaffected — include all of them regardless of which recipients are skipped.
Example
recipients: [{
firstName: "Jane"
lastName: "Smith"
email: "jane@example.com"
order: 0
experience: "ZXhwLWRlZmF1bHQ="
schedule: [{
daysAfter: 3
frequency: 7
when: 2
timeOfDay: "09:00:00"
subject: "Reminder: please sign"
message: "Please sign the document."
skipWeekend: true
}]
}]
Related
- DocumentSendSettingsInput — parent input
- ScheduleItemInput — custom reminder schedule