Signature Templates
This scenario demonstrates how to create and use signature templates in Circularo. Signature templates allow you to save predefined signature field configurations for repeated use, streamlining the signature request process and ensuring consistency across your organization’s signing workflows. Key features:- Create reusable signature templates with predefined signature fields
- Retrieve template information when needed
- Create new documents based on signature templates
- Request signatures using the template’s predefined signature fields
Prerequisites
Before working with signature templates, you need:- A valid authentication token (see the “Authentication & Security” section for details)
- A PDF file to upload as the template’s content
- Knowledge of the metadata definition and workflow you want to use
- Understanding of signature field positioning and requirements
Signature templates are particularly useful when you frequently request signatures on documents with the same layout. They help maintain consistency in signature positioning and reduce the effort needed to configure signature fields for each document.
Step 1 - Upload a PDF file
The first step in creating a signature template is to upload the PDF file that will serve as the template’s content. This file will be the base document for all documents created from this template.- The file is uploaded as a multipart/form-data request
- The response includes the file ID that will be used in the template creation step
- The file should represent the standard document structure with areas designated for signatures
Choose a file that represents your standard document format with clear areas where signatures should be placed. This could be a contract, agreement, or any document that requires consistent signature placement.
- fileHash - Located at
file.idin the response.- Example value:
ISfsNU7Hc91EdYDEyuLMJFwFvmTW20HETPzYZ66iHSBCdhTCFyR1m8uOH2l8PtRY
- Example value:
- The file.id is the unique identifier for the uploaded file
- This ID will be referenced when creating the template in the next step
- The storage information shows your current usage and available quota
Step 2 - Create a signature template
This endpoint creates a new signature template using the previously uploaded PDF file. The template will store the file reference, metadata definition, and signature field configurations that can be reused when creating documents and requesting signatures.- The name parameter defines a descriptive name for the template
- The documentType parameter specifies which metadata definition to use
- The definitionType parameter is set to “ext” for external file-based documents
- The file parameter references the file ID from the previous step
- The signEntities array defines the roles of signers
- The signFields array defines the exact positions and properties of signature fields
- The type parameter is set to “sign” to indicate a signature template
- templateId - Located at
idin the response.- Example value:
4099f3bd-f183-4876-adb3-268123f30b0c
- Example value:
- The response includes the template ID which will be used to reference this template
- The template stores the file reference, metadata definition, and signature field configurations
- This template can now be used to create multiple documents with consistent signature field positioning
Step 3 - Retrieve signature template information
When you need to use a signature template, you can retrieve its details using this endpoint. This allows you to examine the template’s signature field configurations before using it to create a document.- The templateId parameter specifies which template to retrieve
- The response includes all template details including the file reference and signature field configurations
- The name field contains the template’s descriptive name
- The file field contains the file ID of the template’s content
- The signEntities array defines the roles of signers in the template
- The signFields array contains the exact positions and properties of signature fields
- The sequential field indicates whether signatures should be collected sequentially or in parallel
Step 4 - Create a document from signature template
This endpoint creates a new document based on the previously created signature template. The template provides both the document content and signature field configurations.- The customTemplate parameter references the template ID to use
- The documentTitle and other metadata fields must be explicitly provided for this document
- The cloneMainFile option is crucial as it creates a copy of the template’s file for this document
- The workflow parameter defines which workflow to apply to the new document
- documentId - Located at
results[0].documentIdin the response.- Example value:
e8ab3b03-67dc-411f-bbe7-7e212d8e232d
- Example value:
- The response includes the document ID of the newly created document
- The document uses a copy of the template’s file, not the original file
- The document is ready to be shared for signature using the template’s predefined signature field configurations
- The document starts in the initial state of the specified workflow
The signature fields from the template are not automatically applied to the document. They will be applied manually when you share the document for signature in the next step.
Step 5 - Request signature using template fields
This endpoint demonstrates how to share a document for signature using the signature field configurations from the template.- The document is shared with a recipient for signing
- The signature fields are positioned according to the template’s configuration
- The recipient will be notified and can sign the document at the designated positions
- The signing process is tracked in the document history
- The signature fields are manually positioned according to the template’s configuration
- The recipient will be notified about the signature request
- The signing process is tracked in the document history
Signature Templates Summary
You have successfully learned how to create and use signature templates in the Circularo system.Key Concepts
- Signature Templates: Reusable configurations that store file references, metadata definitions, and signature field positions
- Signature Entities: Define the roles of signers in the template
- Signature Fields: Define the exact positions and properties of signature fields on the document
- Manual Data Entry: All document data must be explicitly provided in the request - no data is automatically fetched from templates
Example Implementation
See our OpenAPI documentation to learn about the full set of API endpoints and parameters.
Please use proper exception handling and function decomposition in your own code. The code is provided for illustrative purposes only and is not intended for production use.