# Overview

> Canonical URL: https://docs.mountaya.com/en/apis/tiles/reference/
> Last updated: 2026-11-27
> Rules for agents: https://docs.mountaya.com/llms.txt#rules-for-agents

Every Tile API operation, one page per resource, with samples in cURL, TypeScript and Python.

The Tile API serves base maps, overlays and your organization's content as tiles for the map you already run.

Send your publishable key in `X-API-Key`. A map library cannot set a header, so on the URLs it requests itself the key rides the `publishable_key` query parameter. [Authentication](https://docs.mountaya.com/en/authentication.md) covers both.

Base URL `https://tiles.mountaya.com`, contract `v0.9.0`: [download the OpenAPI document](https://docs.mountaya.com/schemas/v0.9.0/openapi/tiles.yaml).

## Resources

- [Layers](https://docs.mountaya.com/en/apis/tiles/reference/layers.md): The layer catalog: the terrains, the elevation raster, the overlays and the itinerary and zone layers, each by its slug with the tile sources it resolves to.
- [Terrains](https://docs.mountaya.com/en/apis/tiles/reference/terrains.md): The base maps, their sources, sprites and glyphs, and the elevation raster, served through this API so a map draws its base map under the credential it sends here.
- [Overlays](https://docs.mountaya.com/en/apis/tiles/reference/overlays.md): Raster and vector overlays (slope, aspect, weather, points of interest) as tiles and as the specification a client needs to style and read them.
- [Itineraries](https://docs.mountaya.com/en/apis/tiles/reference/itineraries.md): Routes as vector tiles, drawn from the published snapshot or, when a session token naming a member accompanies the key, from the key's own organization's drafts, so a map draws a whole set of them without fetching each one's geometry.
- [Collections](https://docs.mountaya.com/en/apis/tiles/reference/collections.md): A collection's itineraries and zones as tiles, addressed by the collection rather than one resource at a time.
- [Zones](https://docs.mountaya.com/en/apis/tiles/reference/zones.md): Zones as vector tiles, carrying each zone's name, severity and validity window, which a client labels and styles them by.

Every operation of this API takes:

- `Accept-Language` (string, in header, optional): The languages the caller reads, as an HTTP language preference list. It selects the language of each error `message`, and of the names a read localizes, from the languages Mountaya translates into; a language it does not translate into, or no header at all, is answered in English. It never changes a shape, an identifier or a code, so a client branches on `extensions.code` whatever it asks for. An SDK sets it once for the client rather than taking it on each call.

Every answer of this API carries:

- `Cache-Control`: `public, max-age=300` on a publishable-key or share-token request: it carries nothing private, only the catalog narrowed to the organization's overlay allowlist, so a change Mountaya makes to the allowlist reaches a map within five minutes. Every response that carries it also carries `Vary` naming `Origin`, `X-API-Key`, `X-Session-Token` and `X-Share-Token`, so a shared cache never hands one credential's answer to another.
- `RateLimit-Policy`: The limits this request was counted against, as an HTTP structured-field list: one entry per limit. A request of the organization's own clients, and on the Tile API one of its hosted embed, is counted against `"minute"`, the per-minute limit, and `"month"`, the monthly allowance, which is listed unless the organization's agreement leaves it unlimited and whose window is the organization's current billing period, 28 to 31 days, and, on the Tile API alone, `"address"`, the per-minute bound of one client IP address, which a request under a key sent without a session token, or with one minted without `user_id`, is held to. A request of a surface that is never counted is held to bounds of its own instead: on both APIs, a session token minted for `studio-embedded` is counted against `"member"`, the bound of the member it names, or `"address"` for a token minted without `user_id`, and `"studio-embedded"`, the bound every such token of the organization's keys shares; on the Tile API, a share token is counted against `"address"` and `"share"`, the bound every share link of the organization that owns it shares. Each entry carries `q`, the quota, and `w`, the window in seconds. Sent on every answer the limits weighed under a key or a share token, a refusal made after them included; absent on a refusal made before them, on a request from Mountaya's web application, whose bound sends no rate-limit fields, and on an answer a shared cache may store, which is the same for everyone, so the fields would show one organization's figures to every reader; a copy a shared cache serves never reaches Mountaya and counts toward no limit.
- `RateLimit`: Where this request left each limit `RateLimit-Policy` names, as an HTTP structured-field list with one entry per policy, in the same order: `r`, the requests left in the window, and `t`, the seconds until the window resets. The request is counted before it is answered, so a refused request has already spent its place and `r` reads `0` on a `429`. A figure that cannot be read at that moment leaves its entry out rather than guessing. Absent wherever `RateLimit-Policy` is.
- `X-Request-Id`: The identifier of this request, 32 lowercase hexadecimal characters, on every answer: a success, a refusal, a redirect and the opening of a stream alike. Mountaya chooses it; a value a request sends, in this header or in a trace context, is never echoed back as it. Quote it when reporting a problem, which is what lets one request be found among the rest.

New to the API? Start with the [Tile API quickstart](https://docs.mountaya.com/en/apis/tiles/quickstart.md). Errors and rate limits work the same way everywhere: see the [API conventions](https://docs.mountaya.com/en/apis/conventions/errors.md).

## Next steps

- [Quickstart](https://docs.mountaya.com/en/apis/tiles/quickstart.md): Draw an overlay on your MapLibre map.
- [Integration](https://docs.mountaya.com/en/apis/tiles/integration.md): MapLibre, Mapbox, MapTiler, and deck.gl.
- [Conventions](https://docs.mountaya.com/en/apis/conventions.md): Errors, limits, and request IDs.
