# Overview

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

Draw Mountaya base maps, environmental overlays, and your own itineraries as tiles in a map you already run.

Mountaya's base maps, overlays, and your own itineraries as standard map tiles, for MapLibre, Mapbox, MapTiler, or deck.gl.

```text
https://tiles.mountaya.com/v1/overlays/hillshade/{z}/{x}/{y}?publishable_key=pk_your_publishable_key
```

The Tile API serves tiles on the standard `{z}/{x}/{y}` template, so you keep your own map renderer and add Mountaya's layers to it.

**Comes with an agreement:** [talk to us](https://mountaya.com/en/contact/) to start one.

No map renderer yet? [Map Publishing](https://docs.mountaya.com/en/map-publishing.md) embeds a ready-made map in an iframe. For routes and terrain as data, use the [Data API](https://docs.mountaya.com/en/apis/data.md).

## What you can draw

| Layer | What it is | Guide |
| --- | --- | --- |
| Base maps | Complete map styles: summer topo, winter topo, and satellite, plus 3D elevation | [Base maps](https://docs.mountaya.com/en/apis/tiles/base-maps.md) |
| Overlays | Hillshade, weather forecasts, slope steepness, and snow | [Overlays](https://docs.mountaya.com/en/apis/tiles/overlays.md) |
| Your content | Your itineraries, collections, and zones | [Your content](https://docs.mountaya.com/en/apis/tiles/your-content.md) |

`GET /v1/tile-layers` lists the terrains and the overlays your key may draw.

## How a map authenticates

A map renderer fetches tiles on its own and cannot send headers. Add your publishable key to each tile URL as `publishable_key`, as above. When your organization requires session tokens, add `session_token` the same way.

Fetch a specification from your own code with the `X-API-Key` header instead. See [authentication](https://docs.mountaya.com/en/authentication.md) for both.

## What is counted

Each overlay or content tile your maps draw counts toward your organization's limits. Base map tiles do not.

- When to use it: reach for the Tile API when you already run a map renderer (MapLibre GL JS, Mapbox GL JS, the MapTiler SDK, or deck.gl) and want Mountaya's base maps, environmental data (shaded relief, forecast weather, slope steepness, snow) or your own content in it. To skip building a map, Map Publishing drops an interactive published map into an iframe. For routing or geometry answers as data, use the Data API.
- Hosts and paths: `https://tiles.mountaya.com`, `GET` and `HEAD` only; it only reads. Base maps: `/v1/terrains/{terrain}/{variant}/style` and the addresses inside it, plus `/v1/elevation/tiles.json`. Overlays: `/v1/overlays/{overlay}/specification` and `/v1/overlays/{overlay}/{z}/{x}/{y}`. Your content: `/v1/itineraries/{itinerary_id}/specification` and siblings. The layer catalog, `GET /v1/tile-layers`, names every terrain and overlay by slug with those addresses. The [Tile API reference](https://docs.mountaya.com/en/apis/tiles/reference.md) documents every endpoint.
- A base map is a terrain's style document, handed to the renderer as it is. Every address in it, its sources' tiles, its sprites and its glyphs, points at the Tile API, as does the elevation raster, so the whole map is drawn under the credential you send, and no answer carries a credential of Mountaya's.
- Each overlay publishes a specification describing the sources and layers to register: fetch the specification, add its sources, then add its layers, whose paint and layout come straight from the specification.
- Credentials: a publishable key with the `tiles` scope (`X-API-Key` or `publishable_key`), a session token beside it when the organization requires one (`X-Session-Token` or `session_token`), or a share token (`X-Share-Token` or `share_token`). The `tiles` scope is held only while the organization's agreement includes the Tile API product; otherwise `402`. The overlay allowlist starts empty on a new organization, so every overlay is `403` until Mountaya lists its slug, or `*`.
- Limits and headers: the Tile API answers `GET` and `HEAD`, and only reads. Every answer carries `X-Request-Id`, and every answer the limits weighed, under a key or a share token, carries `RateLimit` and `RateLimit-Policy`, except a tile a shared cache may store. Your own clients share 600 requests a minute per organization unless your agreement sets another figure. Before it, a key sent without a session token, or with one minted without `user_id`, is held to the larger of 120 a minute and a quarter of that figure per client IP address. Every `429` names its wait in `Retry-After`. See [rate limits](https://docs.mountaya.com/en/apis/conventions/rate-limits.md).

Each tile served is recorded as your organization's Tile API usage, under the surface it comes from, and only your own clients' tiles and the hosted embed's count toward the limits, an allowance, and the invoice. The base map is the exception: every terrain route's answer, its styles, source tiles, sprites, glyphs and elevation tiles, is recorded under the resource type `terrain` and never counted toward the per-minute limit or the monthly allowance, on any surface. One bound holds it instead, on every surface: 6,000 a minute per client IP address, so a spent monthly allowance never refuses it, and a request past that bound is a `429` with `Retry-After`. The hosted embed's are recorded as `embedding`, so your usage shows them apart, and counted as a key's are, a key sent without a session token, or with one minted without `user_id`, held per client IP address first. Tiles drawn by an Embedded Studio on its `studio-embedded` session, by Map Studio in the Mountaya web application, and through a share link are recorded apart and never counted: an Embedded Studio is held to 6,000 a minute per member it names, or per client IP address for a token minted without `user_id`, and 60,000 per organization, and a share link to 600 a minute per client IP address and 60,000 per organization that owns the link. A `HEAD`, a specification, and the layer catalog count toward the limits as any request does, and are never recorded as usage.

- A monthly allowance applies: 2,000,000 tiles by default, unless the agreement sets another figure or leaves it unlimited. It counts the `api` and `embedding` tiles served in the current billing period. Once spent, every request of the organization's own clients and of its hosted embed, specifications included and the base map's `terrain` requests excepted, is `429` with `Retry-After` until the next billing period. No Tile API request asks for a payment method.
- A request refused for its credential, its page, its product, its key's scope or a spent monthly allowance counts toward no per-minute bound. A request the route then refuses (`400`, an overlay `403`, `404`) is counted.

## Next steps

- [Quickstart](https://docs.mountaya.com/en/apis/tiles/quickstart.md): Draw hillshade on a MapLibre map.
- [Base maps](https://docs.mountaya.com/en/apis/tiles/base-maps.md): A Mountaya base map with 3D elevation.
- [Integration](https://docs.mountaya.com/en/apis/tiles/integration.md): Mapbox, MapTiler, and deck.gl.
- [API reference](https://docs.mountaya.com/en/apis/tiles/reference.md): Every Tile API endpoint, from the OpenAPI specification.
