Reference
Local API
Anacom Earth serves its workspace from a local HTTP API bound to 127.0.0.1. It is not a cloud service and has no public endpoint.
Overview
- The server listens on loopback only, on a free port chosen at start (from 8765 upward).
perichora app statusprints the URL. - Requests must carry a loopback
Host; cross-origin requests are refused. - Two interfaces with separate gates: the research API (read-only) and the management API (paired sessions only).
- OpenAPI documents for both are generated from the implementation and ship with the source (
earth_web/openapi.json,openapi.manage.json).
Research API (public, read-only)
Supported for local tools and scripts. GET only; any write method is refused.
| Method and path | Returns | Notes |
|---|---|---|
GET /api/status | AppStatus | Version, mode, scope flags and catalogue integrity state. Always available. |
GET /api/map/regions | MapRegions | Region outlines for the map. 503 when the catalogue is absent or fails verification. |
GET /api/geo/overview | GeoOverview | Geo research definition summary. |
GET /api/geo/regions/{region_id} | GeoRegionDetail | region_id matches ^[a-z0-9-]{1,40}$. |
GET /api/terra/overview | TerraOverview | Terra research definition summary. |
GET /api/terra/regions/{region_id} | TerraRegionDetail | Same identifier rule. |
GET /api/{system}/regions/{region_id}/grid | GridLayer | system is geo or terra. |
GET /api/models | ModelManager | Read-only view of the local runtime, registry and research definitions. |
curl -s http://127.0.0.1:PORT/api/status{
"app": "Anacom Earth",
"version": "0.10.0",
"mode": "local_read_only",
"scope": {
"audience": "local_research",
"scientific_inference": false,
"deployment_allowed": false
},
"catalogue": {
"status": "not_included",
"detail": "This build does not include the research catalogue because its source redistribution rights are unreviewed. Model management is unaffected."
}
}Management API (internal)
| Route | Purpose |
|---|---|
POST /manage/v1/session | Exchange a pairing code (10–16 characters) for a session |
GET /manage/v1/session | Current session state |
POST /manage/v1/session/end | End the session |
POST /manage/v1/pairing-codes | Mint a further pairing code (paired sessions only) |
GET /manage/v1/state | Registry, library, storage and limits |
GET, POST /manage/v1/operations | List or submit an operation (inspect, install, verify, refresh, remove) |
GET /manage/v1/operations/{op_id} | Operation progress |
POST /manage/v1/operations/{op_id}/cancel | Cancel an operation |
There is no route for adding publisher trust, running shell commands, reading credentials or fetching arbitrary URLs.
Errors and limits
- Errors are generic JSON bodies without stack traces or paths.
- Management requests are JSON only, at most 4 KiB, with separate rate limits for anonymous and paired traffic; 429 means slow down.
- One management operation runs at a time (409 if another is active). Operations are idempotent by key and cancellable.