REST endpoints for listing, querying, and deleting lot records — GET /lotes returns score, NDVI, and historical series; DELETE endpoints require Bearer auth.
Use this file to discover all available pages before exploring further.
The /lotes endpoints give you read and write access to the informes_lotes and lote_historial tables in the AgroIA PostgreSQL database. The two GET endpoints require no authentication, making them suitable for dashboards and monitoring tools. The DELETE endpoints require Bearer token authentication and are irreversible — deleted data cannot be recovered.
AgroIA Score (0–100) combining Vigor, Stability, Cleanliness, and Climate components. May be null for newly ingested lots awaiting pipeline enrichment.
# Get lot with default 5 history recordscurl "http://localhost:8000/lotes/INTA_PIVOTE_001"# Get lot with up to 10 history recordscurl "http://localhost:8000/lotes/INTA_PIVOTE_001?limit=10"
Deletes a single lot and all of its historical records. Removes rows from both informes_lotes and lote_historial. Requires Bearer token authentication.
Deletes all lots from informes_lotes and all rows from lote_historial. This operation is irreversible. Requires Bearer token authentication.
This endpoint empties both tables entirely. There is no confirmation prompt and no rollback. Use only in development or when a full database reset is intentional.