Templates
Use a template
Creates a new envelope using a predefined template.
This endpoint allows you to generate an envelope by inheriting roles, fields, and documents from a template — eliminating the need to define recipients and layout manually.
Each role in the template must be matched with a corresponding recipient in the request, and the number of recipients must match the number of roles exactly. Fields assigned to each role will automatically carry over to the matched recipient.
Template documents are automatically used unless you explicitly replace them. When replacing a document, the new document must contain the same number of pages as the one it’s replacing, and page dimensions must be similar to preserve field positioning.
You may also choose to create the envelope in a draft state for manual preparation via the Annature dashboard.
Parameters
The unique identifier of the template being used to create the envelope.
The name of the envelope, shown in the subject line of emails and in the Annature dashboard.Required only if the template does not define a default
envelope_name.Custom message displayed in recipient emails and the Annature UI.If not provided, the template’s
envelope_message value will be used if available.Whether the envelope should be shared with the sender’s group.Defaults to the template’s
envelope_shared setting if not explicitly provided.Set to
true to create the envelope as a draft.Drafts can be opened and edited in the Annature dashboard via:https://dashboard.annature.com.au/create-envelope?envelopeId={{envelope_id}}The unique identifier of the sender creating the envelope.
Overrides the default group inheritance from the sender.If not supplied, the envelope inherits the sender’s group automatically.
A list of documents to replace those defined in the template.Each replacement must reference the
id of the template document being replaced, and have the same number of pages with similar dimensions.A list of recipients to be assigned to roles from the template.The number of recipients must match the number of template roles.