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.
imageStringOptionalIf "true", includes the signers' identification and photo images in the response.

⚠️ 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'

🔹 Get Process with Signer Images

By including the image=true parameter, the response will include the signers' identification and photo images when available.

curl --location 'https://api.auco.ai/v1.5/ext/document?code=CODEDOCUM&image=true' \
--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.

🖼️ Signer Images

When the image=true parameter is sent, each object in signProfile may include the following image fields:

FieldDescription
identificationCardFront photo of the identification card
identificationCardBackBack photo of the identification card
photoSelfie/photo of the signer

Image Format

Each image field has the following structure:

{
"type": "base64 | presigned",
"data": "..."
}
Typedata ContentDescription
base64data:image/jpeg;base64,...The image is base64 encoded
presignedS3 URL (e.g., https://s3...)Signed URL valid for 5 minutes

Example Response with Images

{
"url": "https://signed_url",
"name": "Service Agreement",
"code": "CODEDOCUM",
"status": "FINISH",
"signProfile": [
{
"name": "John Smith",
"email": "john@example.com",
"id": "G8",
"status": "FINISH",
"identificationCard": {
"type": "presigned",
"data": "https://s3.amazonaws.com/bucket/..."
},
"identificationCardBack": {
"type": "presigned",
"data": "https://s3.amazonaws.com/bucket/..."
},
"photo": {
"type": "base64",
"data": "data:image/jpeg;base64,/9j/4AAQSkZJRg..."
}
}
]
}
warning

Presigned URLs are valid for 5 minutes. Make sure to download the images before they expire.


⚠️ Error Responses

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