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",
"created_at": "2025-11-26T20:48:00.000Z",
"updated_at": "2025-11-26T20:48:00.000Z",
"status": "active",
"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
}

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
statusstringTemplate status (active, inactive)
created_atstring (ISO 8601)Creation date
updated_atstring (ISO 8601)Last update date
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
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 Codes

CodeDescription
400Invalid request (missing id parameter)
401Unauthorized (invalid or missing key)
404Template not found
500Internal server error