API
The region list is on the hub. Everything else is served by each region’s own site, at the same paths.
GET /v1/regions
Every active region and region group, with its MeshMapper code, slug, name, URL, bounding box [west, south, east, north], centre, default radio preset and group. No sign-in; CORS is open; cached for five minutes and sent with an ETag.
curl https://meshsonar.com/v1/regions
{ "regions": [ { "code": "XXX", "slug": "xxx", "name": "…", "status": "active",
"url": "https://xxx.meshsonar.com", "bbox": [w, s, e, n] | null,
"centroid": { "lat": 0, "lon": 0 } | null, "default_preset": { … } | null,
"group": "slug" | null } ],
"groups": [ { "code": "…", "slug": "…", "name": "…", "url": "…", "members": ["XXX"], "bbox": …, "centroid": … } ] }A region’s public endpoints
At https://<slug>.meshsonar.com/api/cmh/<name>. Errors are {error} with 400, 401, 403, 404, 409 or 429 (with Retry-After). Public endpoints are rate limited to 120 requests a minute per address.
| Endpoint | Auth | Request and response |
|---|---|---|
site-config | none | GET → {driverRegistration, appLinks, region: {slug, url}, radioPreset}: radioPreset is the region's suggested MeshCore radio settings, informational only — never pushed to a connected radio |
public-coverage | none | GET [?since=ISO] → {cellDeg, cells[], totals, asOf}: measured squares, drive ends trimmed, flagged drives excluded |
public-stats | none | GET → {drivers, drives, pings, heardPct, km, repeatersHeard, lastDriveAt} |
leaderboard | none | GET ?period=30d|all → {period, rows[]}: opt-in drivers, callsign only |
Uploads and account endpoints are in the drive format.
Planner endpoints
The calls behind the app’s Plan tab, at https://<slug>.meshsonar.com/api/cmh/<name> (on the hub, the default region). They are computed, never stored: public (no sign-in), Cache-Control: no-store, and the region comes from the host, never from the body. A body that carries a region field, or points outside the region, is a 400; 503 with Retry-After means the server is busy, try again. Send an x-driver-key header to get the per-driver allowance (phones behind one network address no longer share one).
| Endpoint | Method | Limits a minute | What it does |
|---|---|---|---|
plan-link | POST | 30 per address, 60 per driver key | One link between two points on the terrain profile: verdict, clearance, link budget and the evidence we hold (measured links and neighbour reports). |
plan-verify | POST | 10 per address, 20 per driver key (one hit per site) | The full coverage model for one site or several, and what each adds to today’s measured and predicted coverage. |
plan-suggest | POST | set when plan.suggest is advertised (until then 501) | Where a new repeater would add the most coverage, links or redundancy: a short ranked list from our data. |
mqtt-presets | GET | the public read limit above | The broker presets for the app’s MQTT feeds, with an ETag (304 when unchanged). Every preset ships off. |
Every answer states its model, terrain source, data freshness and a confidence. Which of these a server has is listed in site-config capabilities as plan.link, plan.coverage, plan.suggest and plan.share.