Skip to main content

Overview

Auto templates in iinked Sign allow users to create document templates that can be automatically detected and applied to a document when creating a new signing package. This feature helps streamline the signing process by predefining templated fields for commonly used documents within your organization. You can also manually apply an auto template when creating packages via the API by specifying the autoTemplateCode for any document.
Using auto templates is especially useful when your packages contain documents that can vary, because you can choose which auto template to apply to each document individually.

Steps

1

Get the auto template code

To apply an auto template to a document when creating a package, you need to obtain the autoTemplateCode for the desired template. You can find this code in the auto template editor within iinked Sign. It appears in the Auto Template Document panel under each document.You can also retrieve a list of auto templates by calling the templates/list endpoint and filtering the results to only include auto templates.
Request
GET /templates/list
{
    "memberId": null,
    "types": [
        "auto_template"
    ],
    "take": 100,
    "skip": 0
}
See the Templates list API for more information.
2

Create package using the auto template

Once you have the autoTemplateCode, you can create a new package by calling the packages/add endpoint and specifying the autoTemplateCode for each document.
Request
POST /packages/add
{
    "name": "From Auto Template Code",
    "type": "concurrent",
    "state": "open",
    "signers": [
        {
            "templateRole": "Signer 1",
            "firstName": "Signer",
            "lastName": "One",
            "email": "signer@example.com",
            "mobileNumber": null
        }
    ],
    "documents": [
        {
            "autoTemplateCode": "agreements:agreement123",
            "fileName": "agreement.pdf",
            "fileId": "{{file_id}}"
        }
    ]
}