# Overview

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

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

The Map Studio API reads and writes your organization's itineraries, zones and collections over REST.

Send your publishable key in `X-API-Key` on every request. Add a session token in `X-Session-Token` where an operation acts as a member. [Authentication](https://docs.mountaya.com/en/authentication.md) explains both.

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

## Resources

- [Sessions](https://docs.mountaya.com/en/apis/map-studio/reference/sessions.md): Exchange a secret key for a short-lived session token, naming the publishable key the session is bound to and, for a page that acts as a member, the user it acts as.
- [Layers](https://docs.mountaya.com/en/apis/map-studio/reference/layers.md): The layer catalog a map draws from: the terrain base maps, satellite among them, the grouped overlays, the itinerary and zone layers, and the elevation raster the terrains are shaded from, with the tile sources and styling each one resolves to.
- [Activities](https://docs.mountaya.com/en/apis/map-studio/reference/activities.md): The activity catalog (hiking, ski touring, road cycling and the rest) grouped by category.
- [Itineraries](https://docs.mountaya.com/en/apis/map-studio/reference/itineraries.md): Routes, end to end: create one, publish it, duplicate it, export it to GPX or KML, and hand it out behind a share link.
- [Segments](https://docs.mountaya.com/en/apis/map-studio/reference/segments.md): The ordered legs a route is made of.
- [Waypoints](https://docs.mountaya.com/en/apis/map-studio/reference/waypoints.md): The named places along a route: a hut, a summit, a water point, a cut-off time.
- [Zones](https://docs.mountaya.com/en/apis/map-studio/reference/zones.md): Areas with something to say about them: an avalanche bulletin, a closure, a permit boundary.
- [Collections](https://docs.mountaya.com/en/apis/map-studio/reference/collections.md): Named groups of itineraries and zones, scoped to an organization.
- [Collection Itineraries](https://docs.mountaya.com/en/apis/map-studio/reference/collection-itineraries.md): Which itineraries belong to a collection, and in what order.
- [Collection Zones](https://docs.mountaya.com/en/apis/map-studio/reference/collection-zones.md): Which zones belong to a collection.
- [Collaboration](https://docs.mountaya.com/en/apis/map-studio/reference/collaboration.md): The live event stream for a resource being edited: who is present, what they have selected, and what changed.
- [Agent](https://docs.mountaya.com/en/apis/map-studio/reference/agent.md): Conversational route building.
- [AI](https://docs.mountaya.com/en/apis/map-studio/reference/ai.md): The AI providers an organization can route agent runs through, and the credentials it has configured for them.
- [Organizations](https://docs.mountaya.com/en/apis/map-studio/reference/organizations.md): An organization and its settings: the workspace itineraries, zones and collections belong to.
- [Users](https://docs.mountaya.com/en/apis/map-studio/reference/users.md): The user the session token names, under `/v1/me`: their membership of the key's organization, the display preferences that follow the person into every organization, and the invitations to the key's organization waiting for their answer.
- [Organization Members](https://docs.mountaya.com/en/apis/map-studio/reference/organization-members.md): Who belongs to an organization, what each may do, and who is invited to join it.
- [API Keys](https://docs.mountaya.com/en/apis/map-studio/reference/api-keys.md): The publishable keys an organization issues: what each one is called, which scopes it carries, and when it was last used.
- [Usage](https://docs.mountaya.com/en/apis/map-studio/reference/usage.md): What an organization has used, a day at a time, on the Tile API and the Data API.
- [Billing](https://docs.mountaya.com/en/apis/map-studio/reference/billing.md): The account behind the maps: what can be bought, what the organization holds, the card it is charged on, and the invoices it has been sent.
- [Webhooks](https://docs.mountaya.com/en/apis/map-studio/reference/webhooks.md): Where an organization's webhook events are delivered, and how reliably: its endpoints, every event recorded, every delivery made, to an endpoint or as a notification email, and the reliability report that keeps Mountaya's service availability apart from each endpoint's success.

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:

- `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 [Map Studio API quickstart](https://docs.mountaya.com/en/apis/map-studio/quickstart.md). In TypeScript, [`@mountaya/client`](https://docs.mountaya.com/en/sdks/typescript/client.md) has a method for every operation.

Errors, pagination and idempotency keys 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/map-studio/quickstart.md): Create, route, and publish an itinerary.
- [TypeScript client](https://docs.mountaya.com/en/sdks/typescript/client.md): A typed method for every operation.
- [Conventions](https://docs.mountaya.com/en/apis/conventions.md): Errors, limits, idempotency, and pagination.
