Skip to content

List Folders

GET {{base_url}}/v1/folders

This endpoint allows you to get a complete list of folders registered in the account, allowing you to apply filters, pagination, and sorting as needed.


The previously obtained authentication token must be sent:

Authorization: Bearer {{access}}

To authorize access to the API, you must include the authentication token in the Authorization header using the Bearer scheme. Additionally, the Content-Type header must specify that the request body (if any) is sent in JSON format.

ParameterTypeDescriptionLimits
Authorization*stringAccess token obtained during login, with the 'Bearer' prefix.Required
Content-TypestringFormat of sent data.'application/json'

These parameters allow you to customize folder search results. You can filter by name, status, hierarchy, creation dates, and include additional data such as subfolders or the parent folder. All parameters are optional and can be combined as needed.

ParameterTypeDescriptionLimits
external_idstringFilter folders by their external identifier assigned by the client.Optional
parent_tokenstringFilter child folders of a specific parent folder.Optional
namestringFilter folders by name (partial search).Optional
activebooleanFilter active (true) or deleted (false) folders.Optional
sort_bystringField to sort by (defaults to created_at).Optional
sort_orderstringResult order: asc or desc.Optional
pageintegerCurrent page of results (pagination).Optional
per_pageintegerNumber of results per page (defaults to 25).Optional

{
"items": [
{
"external_id": "d4b7c8f1-27e4-4f92-b35a-5a3b81e0cf98",
"token": "6a42e1b0-3f7c-45d2-8db4-12a7f3b52a61",
"name": "Contrato Horizonte Azul",
"description": "Acuerdo de colaboración para el suministro y soporte de infraestructura tecnológica",
"document_count": 3,
"signed_documents_count": 1,
"in_progress_documents_count": 1,
"not_started_documents_count": 1,
"created_at": "2024-08-21T09:15:47.000000Z",
"updated_at": "2024-09-05T16:42:30.000000Z",
"deleted": false,
"children": [],
"parent": null
}
],
"pagination": {
"total_items": 5,
"total_pages": 1,
"current_page": 1,
"per_page": 25,
"first_page_url": "https://app.ejemplo.com/api/v1/folders?page=1",
"last_page_url": "https://app.ejemplo.com/api/v1/folders?page=1"
}
}

Each item in the folder listing includes the full folder details, with the following fields available in the response. This data allows you to identify the folder, its status, its hierarchy (if applicable), and the number of documents it contains.

NombreTypeDescription
external_idstringExternal ID assigned by the client.
tokenstringUnique internal token assigned by Firmeasy.
namestringFolder name.
descriptionstringFolder description.
document_countintegerTotal number of documents.
signed_documents_countintegerSigned documents.
in_progress_documents_countintegerDocuments in progress.
not_started_documents_countintegerDocuments not yet started.
created_atdatetimeCreation date.
updated_atdatetimeLast modification date.
deletedbooleanIndicates if it is logically deleted.
childrenarrayList of subfolders.
parentobject/nullParent folder (if it exists).

The response always includes a pagination block that provides the complete status of the current query:

NombreTypeDescription
total_itemsintegerTotal number of folders matching the applied filters.
total_pagesintegerTotal number of pages available with the current `per_page` setting.
current_pageintegerCurrent page number.
per_pageintegerNumber of records returned per page in this query.
first_page_urlstringFull URL of the first page of results.
last_page_urlstringFull URL of the last page of results.

Code Description
400 Invalid request (incorrect or missing parameters).
401 Unauthorized (invalid or missing token).
500 Unexpected internal error.