The full appeals search module (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/BladimirGS/judicial-backend/llms.txt
Use this file to discover all available pages before exploring further.
/api/busquedas) returns complete Apelacion records from the current court system, including nested arrays of parties (partes) and document annexes (anexos). This is the richest projection available and is suited for case review, legal reporting, and export tasks where every relational detail is required. All endpoints in this group require a valid JWT bearer token.
Endpoints overview
| Method | Path | Description |
|---|---|---|
GET | /api/busquedas/filtros | Retrieve filter catalogs (salas, nomenclaturas, tipos de apelación) |
GET | /api/busquedas | Search appeals with filters and pagination |
GET | /api/busquedas/exportar-excel | Export filtered results as an Excel file |
GET | /api/busquedas/exportar-pdf | Export filtered results as a PDF file |
GET /api/busquedas/filtros
Returns the catalog values needed to populate search dropdowns on the client — salas, nomenclaturas, and tipos de apelación. No query parameters are required. Authentication:Authorization: Bearer <token>
Response 200
Always
"success" on a successful request.Catalog arrays used to populate filter dropdowns.
GET /api/busquedas
Searches theApelacion table and returns a paginated list of full appeal records, each including their associated partes and anexos arrays.
Authentication: Authorization: Bearer <token>
At least one search filter (beyond
page and limit) must be provided. Requests that supply only pagination parameters — or no parameters at all — will receive a 400 Bad Request response. The server evaluates the filter set using ApelacionFiltrosDTO.tieneFiltros().Query parameters
Page number for pagination. Starts at
1.Number of results per page.
Filter by the internal officialia folio identifier (e.g.
"FOL-001"). Partial matches are supported depending on the service implementation.Filter by sala ID. Use the catalog values returned by
GET /api/busquedas/filtros.Filter by nomenclatura ID. Use the catalog values returned by
GET /api/busquedas/filtros.Filter by appeal type ID. Use the catalog values returned by
GET /api/busquedas/filtros.Filter by the appeal folio (toca number), e.g.
"TOCA-2024-001".Filter by the originating criminal cause docket number.
Filter by party name (defendant, victim, or other participant). The search is applied across the related
partes records.Start of the reception date range. ISO 8601 format:
YYYY-MM-DD.End of the reception date range. ISO 8601 format:
YYYY-MM-DD.Response 200
"success"Human-readable result message, e.g.
"Operación exitosa".Paginated result envelope.
ApelacionDTO fields
Each object in theapelaciones array has the following structure.
Internal primary key of the appeal record.
Officialia folio identifier assigned at intake.
Appeal folio / toca number assigned after acceptance.
Internal processing code.
Previous toca folio if this is a re-filed or related appeal.
Official correspondence folio number.
Number of pages (fojas) in the dossier.
Accumulated docket identifier when multiple cases are joined.
Whether this appeal is a reposition of a prior proceeding.
Originating criminal cause docket number.
Date of the judicial auto (ruling). Format:
YYYY-MM-DD.Full timestamp of when the appeal was received. Format: ISO 8601.
Full timestamp of when the appeal entered the court system (juzgado intake). Format: ISO 8601.
Free-text observations recorded at intake.
Subject matter description of the appeal.
Geographic location where the underlying criminal act occurred.
Name of the sala (court division) currently handling the appeal.
Name of the sala that previously handled this case (for reassigned appeals).
Name of the originating trial court (juzgado de origen).
Name of the magistrate assigned to the appeal.
Nomenclature classification label.
Appeal type name (descriptive label).
Appeal sub-type classification.
Type of the written submission filed (e.g.
"Escrito de apelación").Parties involved in the appeal (defendants, victims, counsel, etc.).
Document annexes attached to the appeal.
Error responses
| Status | Meaning |
|---|---|
400 Bad Request | No valid search filters were provided (beyond pagination). |
401 Unauthorized | Missing or invalid Authorization bearer token. |
GET /api/busquedas/exportar-excel
Generates and streams a binary Excel workbook (.xlsx) containing all records matching the supplied filters. Pagination parameters are ignored — the export contains the full result set.
Authentication: Authorization: Bearer <token>
Query parameters
Same filter parameters asGET /api/busquedas (excluding page and limit): folioOficialia, idSala, idNomenclatura, idApelacion, folioApelacion, expedienteCausa, nombreParte, fechaInicio, fechaFin.
Response 200
- Content-Type:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - Content-Disposition:
attachment; filename=apelaciones.xlsx - Body: Binary Excel file stream.
Error responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid Authorization bearer token. |
GET /api/busquedas/exportar-pdf
Generates and streams a binary PDF document containing all records matching the supplied filters. Authentication:Authorization: Bearer <token>
Query parameters
Same filter parameters asGET /api/busquedas/exportar-excel.
Response 200
- Content-Type:
application/pdf - Content-Disposition:
attachment; filename=apelaciones.pdf - Body: Binary PDF file stream.
Error responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid Authorization bearer token. |