Ir a la app

The PASTOR API is organized into three endpoint groups. Each group has its own documentation page with the complete parameter reference and response schemas.

Base URL: https://api.pastormap.com

Authentication: all endpoints require a Bearer token.

Authorization: Bearer <token>

Risk

The risk group exposes daily wildfire risk scores, preventive decision support, and territorial decision history for municipalities.

Documentation: Risk endpoints

Key operations:

  • GET /api/v3/m1 — daily risk score for a municipality.
  • GET /api/v3/m3 — preventive decision support.
  • GET /api/v3/decisiones — territorial decision history.

Reports

The reports group generates official PDF documents and narrative risk analysis for institutional communication.

Documentation: Reports endpoints

Key operations:

  • POST /api/v1/report — generate an official PDF report.
  • GET /api/v1/framing — narrative risk analysis for institutional communication.

Ecosystem

The ecosystem group provides vegetation, fuel model, and forest biomass data derived from satellite imagery and the Spanish Forest Map (MFE).

Documentation: Ecosystem endpoints

Key operations:

  • GET /api/v3/m10 — ecosystem and forest biomass data for a municipality.
  • GET /ecosystem — forest ecosystem summary for a municipality.