Skip to content

Generate Folder Link

POST {{base_url}}/v1/digital/carpeta/enlace

This endpoint allows you to generate a temporary link to provide access to a specific folder within the Digital Signature flow. It is ideal for securely sharing batches of documents with third parties.



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

ParameterTypeDescriptionLimits
Authorization*stringAccess token obtained in the login process, preceded by the word 'Bearer'.Obligatorio
Content-Type*stringSpecifies the format of the request body.application/json

Required Fields

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

Send the following parameters in the body of your POST request in JSON format.

ParameterTypeDescriptionLimits
carpeta_id*stringToken or unique identifier (UUID) of the folder you wish to share.Obligatorio (Formato UUID)
tiempo*integerValidity or expiration time of the generated link.Obligatorio (Número entero)

Here are the code snippets ready to test the link generation.

Ventana de terminal
curl -X POST [{{base_url}}/v1/digital/carpeta/enlace]({{base_url}}/v1/digital/carpeta/enlace) \
-H "Authorization: Bearer TU_TOKEN_AQUI" \
-H "Content-Type: application/json" \
-d '{
"carpeta_id": "59288b30-0305-40c6-90f4-d6da2d9750ce",
"tiempo": 5
}'
const myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer TU_TOKEN_AQUI");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"carpeta_id": "59288b30-0305-40c6-90f4-d6da2d9750ce",
"tiempo": 5
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("[{{base_url}}/v1/digital/carpeta/enlace]({{base_url}}/v1/digital/carpeta/enlace)", requestOptions)
.then((response) => response.json())
.then((result) => console.log(result))
.catch((error) => console.error(error));

Note for the Development Team: The JSON structure of the successful response (200 OK) for this endpoint is pending an update in the official documentation.

NombreTypeDescription
url_enlacestring[Reference structure] The temporary link generated to access the folder.

Code Status Description
200 OK The temporary link was generated successfully.
400 Bad Request The parameters sent do not have the correct format (e.g. tiempo is not a number).
401 Unauthorized The token was not sent or has expired.
404 Not Found The folder with the provided ID was not found.
500 Server Error Internal server failure at Firmeasy.