Skip to main content

Query Processes and Templates

GET /document

This service allows you to query your signature processes, automated templates, or your own automated templates in Auco.


Authentication

Include your public key in the Authorization header.

Authorization: puk_xxx...

Query Parameters

NameTypeRequiredDescription
codeStringOptionalDocument code associated with the process. Required if package is not included.

⚠️ If you do not send the code attribute, you will receive a list of automated templates.

info

This same endpoint can also be used to retrieve a document package, see more at the link.


🧪 Usage Examples

tip

You can copy any of the examples according to your preferred programming language.

🔹 Get General Process Information

curl --location 'https://api.auco.ai/v1.5/ext/document?code=CODEDOCUM' \
--header 'Authorization: puk_yourPublicKey'

📥 Example Response

{
"url": "https://signed_url",
"name": "prueba firma garabato",
"code": "CODEDOCUM",
"status": "CREATED",
"data": {
"code": "CODEDOCUM",
"name": "prueba firma garabato",
"camera": false,
"otpCode": false,
"signFinish": false,
"signProfile": [
{
"name": "Firmante de prueba",
"email": "example@auco.ai",
"id": "G8",
"status": "NOTIFICATION"
}
],
"createdAt": "2025-01-02T16:54:00.297Z",
"updatedAt": "2025-01-02T16:54:03.105Z"
},
"signProfile": [
{
"name": "Mauricio Lopez",
"email": "maurilo934@hotmail.com",
"id": "G8",
"status": "NOTIFICATION"
}
]
}

🔄 Document Status (status)

StatusDescription
CREATEDWhen the process has been created.
REJECTEDProcess rejected.
EXPIREDProcess expired, only if an expiration date was set.
FINISHProcess signed or approved by all parties.

🔄 Participant Status (status)

StatusDescription
NOTIFICATIONThe participant has been notified for signing.
REJECTThe participant has rejected the signing or approval.
FINISHThe participant has signed or approved the process.
BLOCKThe participant exceeded failed attempts while signing or approving.
PENDINGThe participant has not been notified, usually due to a sequential process.

⚠️ Error Responses

CodeDescription
400Process not found (DOCUMENT_NOT_FOUND)
401Invalid or missing authentication