Read and write street-tree plot and tree records (species, diameter, location, stewardship) in an OpenTreeMap instance via the OTM v4 API with HMAC-signed requests

domain: opentreemap.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain an ACCESS_KEY/SECRET_KEY pair — either create one via APIAccessCredential in a self-hosted OTM Django shell, or request one from the hosting provider for a hosted opentreemap.org instance
  2. Sign every request per the documented HMAC scheme: build a sign string from HTTP verb, host header, request path, sorted query params, and body, then HMAC-SHA256 it with the secret key and attach access_key/timestamp/signature as query params
  3. Call GET /instance/{instance-url-name}/locations/{lat},{lon}/plots to find planting sites near a point (tune max_plots and distance)
  4. POST a JSON body with plot.geom (and optional tree.diameter, etc.) to /instance/{instance-url-name}/plots to create a new planting site and tree
  5. PUT to /instance/{instance-url-name}/plots/{plot-id} with a partial JSON body to update an existing plot or tree's fields
  6. Call GET /instance/{instance-url-name}/species to resolve valid species IDs before writing tree.species

Known gotchas

Related routes

Query OpenStreetMap data with the Overpass API while respecting public-instance rate and resource limits
overpass-api.de · 4 steps · unrated
Query tree inventory features from a TreePlotter INVENTORY layer via the REST API, with pagination
treeplotter.com · 5 steps · unrated
Generate urban tree canopy and ecosystem-benefit estimates for specific city Urban FIA projects via the USFS Urban FIADB-API
apps.fs.usda.gov · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans