List Folders
List Folders
Section titled “List 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.
Authentication
Section titled “Authentication”The previously obtained authentication token must be sent:
Authorization: Bearer {access}Headers
Section titled “Headers”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.
AuthorizationContent-TypeSearch Parameters
Section titled “Search Parameters”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.
external_idparent_tokennameactivesort_bysort_orderpageper_pageResponse Example
Section titled “Response Example”{ "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" }}Fields Returned per Folder
Section titled “Fields Returned per Folder”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.
external_idtokennamedescriptiondocument_countsigned_documents_countin_progress_documents_countnot_started_documents_countcreated_atupdated_atdeletedchildrenparentPagination
Section titled “Pagination”The response always includes a pagination block that provides the complete status of the current query:
total_itemstotal_pagescurrent_pageper_pagefirst_page_urllast_page_urlPossible Errors
Section titled “Possible Errors”| Code | Description |
|---|---|
| 400 | Invalid request (incorrect or missing parameters). |
| 401 | Unauthorized (invalid or missing token). |
| 500 | Unexpected internal error. |
