Skip to main content

Get Template by ID

This service allows you to retrieve the complete details of a specific template using its id. It is useful for querying the configuration, fields, signature profiles, and metadata of a template before using it in signature processes or modifications.

GET/template?id={templateId}public keypuk_

Authentication​

Include your public key in the Authorization header.

Authorization: puk_xxx...

Request Parameters​

PropertyTypeRequiredDescription
idstringRequiredUnique template identifier

Request Examples​

curl -X GET "https://api.auco.ai/v1.5/ext/template?id=template_id" \
-H "Authorization: your_public_key"

Response Example​

{
"id": "template_id",
"name": "Test document variable modification",
"description": "Service agreement with a single signer, for the sales team",
"config": [
{
"name": "name_cliente",
"type": "name",
"description": "Enter the customer name"
},
{
"description": "Select the document type for the customer",
"name": "document_type_cliente",
"type": "clausula",
"value": "cc",
"options": [
{
"name": "Citizenship Card",
"value": "cc"
},
{
"name": "Foreign ID Card",
"value": "ce"
}
]
},
{
"description": "Enter the citizenship card number for the customer",
"name": "cedula_cliente",
"type": "number",
"prereq": [
{
"k": "document_type_cliente",
"v": "cc"
}
]
},
{
"description": "Enter the foreign ID card number for the customer",
"name": "cedulae_cliente",
"type": "number",
"prereq": [
{
"k": "document_type_cliente",
"v": "ce"
}
]
},
{
"name": "email_cliente",
"type": "email",
"description": "Enter the customer email"
},
{
"name": "phone_cliente",
"type": "phone",
"description": "Enter the customer phone number"
}
],
"sign": [
"name_cliente",
"cedula_cliente",
"cedulae_cliente",
"email_cliente",
"phone_cliente"
],
"signatureProfile": [
{
"email": "email_cliente",
"phone": "phone_cliente",
"identification": "cedula_cliente|cedulae_cliente",
"name": "name_cliente",
"type": "cliente"
}
],
"preBuild": false,
"urls": {
"mask": "https://signed_url_mask",
"complete": "https://signed_url_complete"
}
}

Response Properties​

PropertyTypeDescription
idstringUnique template identifier
namestringTemplate name
descriptionstringOptional. Text describing the template, up to 500 characters. It only appears if the template has one set
configarrayArray of template questions/fields
config[].namestringUnique field identifier
config[].typestringQuestion type (text, name, email, etc.)
config[].descriptionstringText displayed to the user
config[].valuestringDefault value (optional)
config[].optionsarrayAvailable options for clausula/select fields
config[].prereqarrayConditions to display the field (optional)
signarrayNames of required questions
signatureProfilearraySigner configuration
signatureProfile[].namestringField with the signer's name
signatureProfile[].identificationstringIdentification field(s) (separated by |)
signatureProfile[].emailstringField with the signer's email
signatureProfile[].phonestringField with the signer's phone
signatureProfile[].typestringSignature identifier (e.g.: cliente, vendedor)
preBuildbooleanWhether the template includes automatic pre-filling
urls.maskstringSigned URL to download the HTML Mask. Expires after 120 seconds
urls.completestringSigned URL to download the HTML Complete. Expires after 120 seconds
description does not identify a template

description is free text you set when you create or update the template, and it only comes back when the template has one set. Do not use it as an identifier: that is what id is for.


⚠️ Error Responses​

CodeDescription
400Template not found: TEMPLATE_NOT_FOUND (the id does not match a template of your organization)
401Invalid or missing authentication