Swagger UI
Interactive try-it-out. Hit endpoints from your browser with live parameter editing, response inspection, and auth flow. Best for debugging.
Open SwaggerReDoc
Polished reference docs: searchable, three-pane layout, every parameter and response field documented. Best for browsing the API surface.
Open ReDocSchema Explorer
The database, browsable. Every table and view with field descriptions, foreign-key arrows, an ER diagram, and a back-link to the API endpoints that query each table.
Open SchemaOpenAPI Spec
Raw OpenAPI 2.0 JSON. Feed it to a client generator (openapi-generator, Postman), a contract test, or your own tooling.
Download JSONWhat this service exposes
A versioned REST API over the water-accounting data warehouse. Resource-oriented, kebab-case URLs, basin as a first-class path resource.
/v1/basins/{basin}/… — dashboard-shaped endpoints used by the IWMI Digital Twin
and basin portals. Water balance, water availability, land use, monthly climatology,
water yield, change analysis. All returns are Plotly-ready traces, GeoJSON, or key-metric blocks.
/v1/watercopilot/basins/{basin}/… — LLM-friendly variants. Returns a server-rendered
chart URL plus a one-sentence prose summary and a small stats block — designed to keep
token cost low and avoid leaking large numeric arrays into conversation context.
/v1/basins + /v1/metrics — discovery. Call these first when scripting
against the API for an unfamiliar basin or metric.
Errors follow RFC 7807 (application/problem+json) and read endpoints
set Cache-Control + ETag for client/CDN caching.