Get started

Get started

Map Studio API reference

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 explains both.

Base URL https://api.mountaya.com, contract v0.8.0: download the OpenAPI document.

Resources

  • Sessions: 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: 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: The activity catalog (hiking, ski touring, road cycling and the rest) grouped by category.
  • Itineraries: 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: The ordered legs a route is made of.
  • Waypoints: The named places along a route: a hut, a summit, a water point, a cut-off time.
  • Zones: Areas with something to say about them: an avalanche bulletin, a closure, a permit boundary.
  • Collections: Named groups of itineraries and zones, scoped to an organization.
  • Collection Itineraries: Which itineraries belong to a collection, and in what order.
  • Collection Zones: Which zones belong to a collection.
  • Collaboration: The live event stream for a resource being edited: who is present, what they have selected, and what changed.
  • Agent: Conversational route building.
  • AI: The AI providers an organization can route agent runs through, and the credentials it has configured for them.
  • Organizations: An organization and its settings: the workspace itineraries, zones and collections belong to.
  • Users: 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: Who belongs to an organization, what each may do, and who is invited to join it.
  • API Keys: The publishable keys an organization issues: what each one is called, which scopes it carries, and when it was last used.
  • Usage: What an organization has used, a day at a time, on the Tile API and the Data API.
  • Billing: 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.

New to the API? Start with the Map Studio API quickstart. In TypeScript, @mountaya/client has a method for every operation.

Errors, pagination and idempotency keys work the same way everywhere: see the API conventions.

Last updated