Get started

Export

The exportItinerary query of the Data API. Every request is a POST to https://data.mountaya.com/graphql with a publishable key and a session token: see Authentication.

exportItinerary

POST
/graphql

Prepare a download of an itinerary in a route file format.

Arguments

input

ExportItineraryInput!

required

The itinerary to export, the file format to write, and the variant when the format offers one.

Returns

exportItinerary

ExportItineraryResult!

required

A prepared itinerary download.

Errors A field the API refuses is answered 200, its entry in errors beside the data that resolved. See Errors.

curl https://data.mountaya.com/graphql \
  -H "X-API-Key: pk_your_publishable_key" \
  -H "X-Session-Token: sess_your_session_token" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "query ExportItinerary($input: ExportItineraryInput!) { exportItinerary(input: $input) { expiresAt filename url } }",
    "variables": {
      "input": {
        "format": "GPX",
        "id": "0b6d1a4e-6d3f-4f7a-9c2e-1f0a5b8c3d21"
      }
    }
  }'