Maps

Export Map Style Endpoint

Export a saved map as a complete MapLibre style JSON document.

get/maps/{map_id}/style.json

Request

  • The document declares no server URL.
  • Auth: one of:
    • none
    • OAuth 2 (password, token URL /api/auth/login)
    • API key in header X-Api-Key
    • API key in query parameter api_key

Path parameters

map_idstring uuid required

Response

A complete MapLibre style document for the saved map. Its shape is governed by the MapLibre Style Specification (https://maplibre.org/maplibre-style-spec/) and is not mirrored field-by-field in this contract. One guarantee beyond the spec: sprite is always emitted in the array form [{id, url}], which POST /maps/import also accepts, so exported documents round-trip.

object required

Changes

No recorded changes to this operation across all 50 revisions of this API.