Skip to content
FirmEasy

Download Electronic File

POST
https://app.firmeasy.legal/api/v1/electronica/archivo/download

This endpoint allows you to download a specific digital file processed in the Electronic Signature module. The download is processed using the unique file identifier provided in the request body.



This resource is protected. You must include your access token in the request header.

Authorization
string
Access token (Bearer token).
Limits:Required
Content-Type
string
Specifies the request format.
Limits:application/json

Required Fields

Fields marked with an asterisk (*) are required and must be provided in the request. Other fields are optional.

Send the file identifier in JSON format to start the download.

archivo_id
string
Unique identifier (UUID) of the file you want to download.
Limits:Required (UUID format)

Ventana de terminal
curl -X POST [https://app.firmeasy.legal/api/v1/electronica/archivo/download](https://app.firmeasy.legal/api/v1/electronica/archivo/download) \
-H "Authorization: Bearer TU_TOKEN_AQUI" \
-H "Content-Type: application/json" \
-d '{
"archivo_id": "466693fc-025a-4b41-8874-08160d0d2458"
}'
const myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer TU_TOKEN_AQUI");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"archivo_id": "466693fc-025a-4b41-8874-08160d0d2458"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("[https://app.firmeasy.legal/api/v1/electronica/archivo/download](https://app.firmeasy.legal/api/v1/electronica/archivo/download)", requestOptions)
.then((response) => response.blob())
.then((blob) => {
console.log("File ready for download");
})
.catch((error) => console.error(error));

Code Status Description
200 OK Download started successfully.
400 Bad Request JSON error or invalid file ID.
401 Unauthorized Missing or invalid token.
404 Not Found File not found.
500 Server Error Internal server failure.