Skip to content
Documentation menu
docs / api
Reference

API endpoints

126 public endpoints, one page each. Every page on this index is generated at build time from the document the gateway publishes at /openapi.json, so what you read here is what that deployment declares, not a second copy of it maintained by hand.

gateway 0.3.0 · read from https://api.mapmap.ai/openapi.json on 2026-11-12 · 50 admin and console operations are not listed

The rules these endpoints share, authentication, coordinate order, quotas, the error model and the ADR tunnel codes, are defined once on API conventions. For the narrative version with worked requests, read the API reference guide.

Mapbox-compatible paths

Directions, Matrix, Isochrone, Optimization v1 and Geocoding paths in Mapbox's shape, each served and priced as the MapMap endpoint it wraps.

Routing

Routes for every profile, with truck and ADR restrictions, the OSRM-compatible URL surface, map matching, and what a route passes along the way.

Matrix

Many-to-many travel times and distances, synchronously or as an asynchronous job.

Optimisation and jobs

Multi-vehicle optimisation, re-planning mid-shift, drive-every-street coverage, clustering, and the asynchronous job lane with its webhooks.

Geocoding and search

Forward, reverse and batch geocoding, and search as you type.

Places

Your own places dataset with search and nearest, and what is in view from a position and heading.

Isochrones

Where you can reach within a time or distance budget, as polygons.

Elevation

Elevation at points and along a route.

Weather

Forecast weather along a route at each point's arrival time, and the forecast frames MapMap processes for drawing.

Fuel

Fuel stations along a route, cheapest first, with real detours.

EV charging

Charge points along a route, and whole EV journeys planned with their charge stops.

Transit

England bus positions, stops and timetabled departures, for display.

Events and live layers

Earthquakes, volcano alerts, fire detections, the aurora forecast and Kp, for display.

Clearance

Measured overhead clearance along a route, from survey geometry.

ADR

Dangerous-goods tunnel compliance for a load, without routing.

Verify

Checks whether places and itineraries an AI mentioned are real, findable and possible.

Boundaries, coordinates and time zones

Administrative boundaries, reprojection between reference systems, CRS checks for a dataset, and the time zone at a point.

Keys and account

Self-serve keys, their verification, key state and usage, and OAuth for agent clients.

GET/.well-known/oauth-authorization-server

RFC 8414 authorization-server metadata.

POST/oauth/register

Dynamic client registration (RFC 7591). Public clients only: the response carries no `client_secret`, and any `token_endpoint_auth_method` other than `"none"` is refused rather than silently downgraded.

POST/oauth/token

The token endpoint: authorization-code and refresh-token grants.

POST/v1/keys

One-call signup: issues a provisional key and emails a magic verification link.

DELETE/v1/keys/self

Deletes the caller's account, per app: a verified key revokes every key of the identity behind it that carries the same label (each MapMap app labels its own key), and, when no other active key remains on the identity, deletes the account itself and erases its email, IP addresses and user agents. An unverified (`provisional`) key revokes only itself, and deletes the account only when it is the account's sole key: anyone who types an address can mint one, so it never speaks for the account. On the store-review identity any key deletes only itself, because that address is not a secret (security check M3). Idempotent: a retry with the same, now revoked, key answers 200 with `already_deleted`.

GET/v1/keys/self

Key status for the calling agent (quota-free: polling it never consumes the free tier).

POST/v1/keys/self/email

Sends a one-time code to an address for the calling email-less (`anonymous`) key. Nothing changes until the SAME key sends the code back to `POST /v1/keys/self/email/verify`; meanwhile `GET /v1/keys/self` shows the address as `pending_email`. Sending again (a corrected address, or a resend) replaces the pending address and voids the earlier code.

POST/v1/keys/self/email/verify

Proves the address: the calling email-less key sends back the code `POST /v1/keys/self/email` mailed. On success the address becomes this key's account's, and THIS key, and only this key, is lifted to `verified` on the free tier, which also unlocks offline downloads.

POST/v1/keys/self/verify

"Code in this tab" (Option B, Matt, 6 Nov 2026): the calling provisional key sends back the 6-digit code from its own verification mail. A right code confirms THIS key exactly as the link's button does (the same upgrade, the same five-key cap, the link voided afterwards). When this key is the address's only live key and the address has no account, session or money ([`identity::AccountShape::may_sign_in`], decided in the confirming transaction), it also mints a console session bound to this key, because the one request proves both the key (the caller holds it) and the mailbox (only its reader has the code): docs/ACCOUNT-CLAIM-DESIGN.md sections 3.2 and 6.5. An existing account, or another live key on the address: refused with `use-link` and nothing confirmed (such a key's mail has no code; the link's button confirms it), security review of #2123.

POST/v1/keys/self/verify/resend

Sends the calling provisional key a fresh verification mail: a new 6-digit code (the previous code stops working at once) and a new link (earlier links keep working until the key is confirmed; each only confirms this key). At most one code a minute and [`identity::MAX_KEY_CODE_RESENDS_PER_KEY_PER_HOUR`] an hour per key, and every mail is spent from the same per-network and per-address verification-mail budgets as `POST /v1/keys`, so this is no new way to fill an inbox.

GET/v1/keys/verify

The emailed link's landing page. **Opening it changes nothing** (review of #1339, H1): mail security scanners and a single stray click open links, so a link that confirmed on GET could confirm a key a stranger asked for. The page shows the request (the app it said it came from, or that it named none, the time and the device class; no location is recorded) and confirms or refuses only on an explicit button, which POSTs to [`confirm_key`] or [`deny_key`].

POST/v1/keys/verify

Confirms the ONE key a link was mailed for, upgrading it to the verified free tier (or the plan already bought). Only an explicit press of the page's button reaches this (review of #1339, H1).

POST/v1/keys/verify/deny

"This wasn't me": revokes the key a link was mailed for and spends the link. The owner of the address refuses a key somebody asked for against it (review of #1339, H1).

POST/v1/keys/verify/details

What the confirmation page shows: the request behind a link, without consuming it. A POST, so the token stays out of URLs and logs.

GET/v1/usage

The calling key's own metered units, day by day and endpoint by endpoint (quota-free: reading it never spends units).

x402 payments

Prepaid credit bought with one x402 settlement.

Tiles, styles and map assets

Hosted vector tiles, styles, glyphs, sprites, vehicle avatars, static map images and point-cloud payloads.

Offline territories

Signed territory indexes, manifests and layers for offline devices, and custom-region builds.

Voice

Guidance voice clips, synthesised once and cached.

Feedback and map issues

Map error reports, integration retros, arrival feedback and the opt-in data probe.

Service metadata

What this deployment is and runs: health, status, provenance, terms, the OpenAPI document and app version checks.