Skip to content
Documentation menu
docs / api / get-openapi-json
Service metadata

GET/openapi.json

Access and price

AuthNo key. Not metered.
PriceNot metered: no quota, no credit.

What it does

The generated OpenAPI 3.1 document, with the configured public URL as the server entry.

No key. Not metered.

Call it

bash
curl -fsS -X GET "https://api.mapmap.ai/openapi.json"

Responses

200OpenAPI 3.1 document
FieldTypeRequiredDescription
componentsobjectnoShared schemas and security schemes.
infoobjectnoTitle, version and description.
openapistringnoOpenAPI version.
pathsobjectnoEvery operation, by path and method.
serversobject[]noThe server this document describes.
tagsobject[]noOperation groups.

Example: Recorded from the hosted gateway on 2026-11-05: GET /openapi.json, keyless (one path kept); lists trimmed to their first items

json
{
  "components": {
    "securitySchemes": {
      "admin_token": {
        "scheme": "bearer",
        "type": "http"
      },
      "api_key_bearer": {
        "scheme": "bearer",
        "type": "http"
      },
      "api_key_query": {
        "in": "query",
        "name": "api_key",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "The MapMap hosted gateway: routing for every profile with truck and dangerous-goods (ADR) compliance, matrices, isochrones, optimisation, geocoding and search, places, elevation, weather, fuel and EV charging along a route, transit, live layers, measured clearance, vector tiles and styles, offline territories, self-serve keys and x402 machine payments, metered by API key. Every operation carries `x-mapmap-auth` (keyless, key, or the keyless demo lane) and, where it is metered, `x-mapmap-billing` (price class, units per call and the rule in /pricing.json that publishes it). Errors are RFC 9457 problem+json with a stable `type` URN.",
    "title": "sn-gateway",
    "version": "0.3.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/timezone": {
      "get": {
        "operationId": "get_timezone",
        "summary": "Timezone-at-coordinate endpoint.",
        "tags": [
          "timezone"
        ],
        "x-mapmap-auth": {
          "browser_key": false,
          "mode": "key",
          "premium": "never",
          "summary": "An API key, as `Authorization: Bearer snk_…` or `?api_key=snk_…`. Metered."
        },
        "x-mapmap-billing": {
          "client_errors": "A 4xx answer is never charged to prepaid credit. Its units go back to the included quota when the 4xx rejected the request itself; a 4xx after real engine work, such as no route found, still counts.",
          "metered": true,
          "premium_weight": "One Premium call draws 20 included Standard calls from a plan or the free tier.",
          "price_class": "standard",
          "pricing_rule": "default",
          "units": "1 call per request."
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mapmap.ai"
    }
  ]
}
504The request did not finish within the gateway's request deadline (request-timeout)

application/problem+json · Problem

Error bodies follow the shared problem model documented on API conventions.

Also under Service metadata

Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId openapi_json