Risk insights API
Your systems read Moveguide's insights about your assets — each asset's rating, flood risk and what-if water, and what a scenario would reach in your records — with a server key. On Enterprise and Spectre.
One API, two kinds of key
Moveguide has one API. A widget key works only inside the widget on your website, as it always has. A server key is for your own systems: it reads insights about your assets and nothing else.
- Create one in the console: API keys → Generate new key → Server key. Owners only, on the risk map's plans. It is shown once — keep it in your secret manager.
- It is secret: a call from a browser (one that sends an Origin) is refused, and it never works in the widget. A widget key never works here.
- Send it as
Authorization: Bearer mvg_server_…. Up to 120 calls a minute per key. Revoke it in API keys at any time. - Read-only. Only your organisation's placed assets; never another organisation's, and nothing from Google Maps.
Every asset
GET https://platform.moveguide.co/api/v1/risk/assets?city=lagos&limit=500&offset=0
Authorization: Bearer mvg_server_…Answers with as_of, total and assets: one entry per asset, with its name and city and these fields — the same as the insights file in Connections:
| Field | What it is |
|---|---|
asset_id | Your asset's ID |
hexagon | Its hexagon's short ID |
vicinity | Its vicinity |
rating | High, Medium, Low or Not rated |
flood_risk | Flood risk on its own spot: High, Medium or None |
low_ground_m | Ground height in metres when 5 m or less; empty when higher |
rain_next_72h_mm | Rain expected over the next 72 hours, mm |
flood_report_days_3y | Days with floods reported within 2 km, the last 3 years |
last_flood_report | The latest of those days |
water_r100 | What-if run, 100 mm of rain over 3 days: 0 dry, 1 under 0.3 m, 2 from 0.3 to 1 m, 3 over 1 m |
water_r200 | The same for 200 mm |
water_r300 | The same for 300 mm |
water_r300_sea06 | The same for 300 mm with the sea 0.6 m higher |
water_surge_1 | The same for a storm surge 1 m above high tide |
at_water_level_today | yes when the asset's hexagon is at the water's level today (the lagoon's edge, wetland): wet already, so no run counts it |
as_of | When these insights were worked out |
One asset, and what it reaches
GET https://platform.moveguide.co/api/v1/risk/assets/LS-001The asset's insights, and reaches: with your loan book, cover, rent roll or bookings connected, how its insights reach your own figures — for example loans on High flood risk, cover that leaves out flood, rent, stays in the next 30 days — each in words, with the sums by currency and how many records. See Accepted data.
A scenario
GET https://platform.moveguide.co/api/v1/risk/scenarios?run=r150-s0&city=lagos
GET https://platform.moveguide.co/api/v1/risk/scenarios?run=surge-1
GET https://platform.moveguide.co/api/v1/risk/scenarios?run=heat-5
GET https://platform.moveguide.co/api/v1/risk/scenarios?run=outage-24run: heavy rain and the sea —r50tor300(mm over three days) with-s0,-s0.3or-s0.6(the sea and lagoon higher, m); a storm surge —surge-0.5,surge-1,surge-1.5(m above high tide); a heat wave —heat-3,heat-5,heat-10(days over 35 °C); a power cut —outage-12,outage-24,outage-72(hours). A disruption in an area is run in the console, where you draw it.- Answers with the hexagons and buildings it reaches,
assets_reached(each with itslevel1–3 and the words for it),follows_onfor a heat wave or power cut,reachesin your records, and for water runsat_water_level_today: the land at the water's level today (wet already, so no run counts it as flooded) and your assets there. - A what-if, never a forecast. See Scenarios.
Your AI assistant (MCP)
The same insights reach your own AI assistant through Moveguide's connector, which speaks the Model Context Protocol (MCP). Your analysts ask their assistant — "which of our assets would a 1 m storm surge reach?" — and it reads Moveguide with your server key.
URL: https://platform.moveguide.co/api/mcp
Header: Authorization: Bearer mvg_server_…
Claude Code:
claude mcp add --transport http moveguide https://platform.moveguide.co/api/mcp --header "Authorization: Bearer mvg_server_…"| Tool | What it does |
|---|---|
list_assets | Every asset's insights, as in Every asset above. |
get_asset | One asset, and what its insights reach in your records. |
run_scenario | A what-if run, as in A scenario above. |
ask_avis | A question about your assets, answered by Avis and checked as in the console: only Moveguide's insights and your own records, no sources named. Up to 20 questions in 10 minutes per key; your organisation's daily questions are shared with the console. |
- Read-only: no tool changes anything. Every tool call counts toward the key's 120 calls a minute.
- Your assistant writes its own words around what it reads; for Moveguide's own reading, use
ask_avisand quote it as Avis's. - For assistants that connect only by signing in (OAuth) rather than with a key in a header: not yet available.
Errors
| Status | What happened |
|---|---|
| 401 | No key, an invalid, revoked or expired key, or a widget key. |
| 403 | A call from a browser, or the organisation isn't on a plan with the risk map. |
| 404 | No placed asset of yours has that ID. |
| 409 | Scenarios aren't ready for that city yet. |
| 429 | Over 120 calls a minute for this key. Wait a moment, then try again. |