The flat search (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/plano) returns Apelacion records in a streamlined scalar projection. Unlike the full-mode search, flat results do not include the nested partes (parties) or anexos (annexes) arrays. This makes the endpoint significantly faster for bulk queries, dashboard counts, and export operations where relational detail is not needed. All endpoints require a valid JWT bearer token.
Endpoints overview
| Method | Path | Description |
|---|---|---|
GET | /api/busquedas/plano | Search appeals in flat projection with filters and pagination |
GET | /api/busquedas/plano/exportar-excel | Export flat results as an Excel file |
GET | /api/busquedas/plano/exportar-pdf | Export flat results as a PDF file |
GET /api/busquedas/plano
Returns a paginated list ofApelacionPlanoDTO records. Each record is a flat object with all scalar fields of an appeal but without nested partes or anexos.
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 filter set is validated with PlanoFiltrosDTO.tieneFiltros().Query parameters
Page number for pagination. Starts at
1.Number of results per page.
Filter by the officialia folio identifier (e.g.
"FOL-001").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 appeal folio / toca number (e.g.
"TOCA-2024-001").Filter by the originating criminal cause docket number.
Filter by free-text observations recorded at intake. This filter is exclusive to flat mode and is not available in the full-mode search.
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.
ApelacionPlanoDTO fields
Each object in theplanos array is a flat record with no nested arrays.
Internal primary key of the appeal record.
Officialia folio identifier assigned at intake.
Appeal folio / toca number assigned after acceptance.
Previous toca folio if this is a re-filed or related appeal.
Official correspondence folio number.
Internal processing code.
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. 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 currently handling the appeal.
Name of the sala that previously handled this case.
Name of the originating trial court.
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.
The
planos response intentionally omits the partes and anexos arrays present in the full ApelacionDTO. If you need party or annex data, use GET /api/busquedas instead.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/plano/exportar-excel
Generates and streams a binary Excel workbook (.xlsx) containing all flat records matching the supplied filters. Pagination parameters are not applicable — the export contains the full result set.
Authentication: Authorization: Bearer <token>
Query parameters
Same filter parameters asGET /api/busquedas/plano (excluding page and limit): folioOficialia, idSala, idNomenclatura, idApelacion, folioApelacion, expedienteCausa, observacion, fechaInicio, fechaFin.
Response 200
- Content-Type:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - Content-Disposition:
attachment; filename=planos.xlsx - Body: Binary Excel file stream.
Error responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid Authorization bearer token. |
GET /api/busquedas/plano/exportar-pdf
Generates and streams a binary PDF document containing all flat records matching the supplied filters. Authentication:Authorization: Bearer <token>
Query parameters
Same filter parameters asGET /api/busquedas/plano/exportar-excel.
Response 200
- Content-Type:
application/pdf - Content-Disposition:
attachment; filename=planos.pdf - Body: Binary PDF file stream.
Error responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid Authorization bearer token. |