All you need to sell rail

All Aboard provides professional tools for accessing and selling train content, with the two main features being an intuitive Dashboard for manual agent bookings and an API for automated processes and deep integrations.

  • The Dashboard: Designed with a heavy focus on UX, to be a easy-to-use and efficient tool for agents, without the need for training.

  • Embeds: Low-code integrations that enable you to add train content to your website without programming knowledge.

  • The All Aboard API: Designed to be fast to implement while still providing flexibility to query complex routes and offers.

The Dashboard

The dashboard is an all-in-one platform for booking train trips. Plan and book tickets and rail passes with user-friendly tools that anyone can use, no training required.

On the Dashboard you can place and manage orders, download tickets, request refunds. All digital, with easy payments and accounting. To gain access, drop us a note and we'll get back to you.

Visit The Dashboard

Once you have set up an agent account with All Aboard you can sign in to the Dashboard to manage your bookings. Sign in now

Embeds

Embeds are an easy way to add train content to your website without investing time or effort in complex technologies. Embeds enable low-code integrations with any website and are a powerful tool for building a rich and seamless experience for your customers. Using Embeds requires no programming knowledge and works with any web technology.

We offer a number of embeds that cover many of the complex interfaces that comes with rail bookings. To add an embed to your website, simply copy the embed code and paste it into your HTML.

Learn more about Embeds

Read more about the available embeds and how to use them in the Embeds documentation.

The API

The All Aboard API lets you search train routes, place ticket and rail pass orders, and manage bookings digitally. It supports complex journeys, fast search with caching, and streaming results for quick responses. All bookings and products are 100% digital and manageable through the API.

Before digging into the API you should familiarize yourself with some of the technologies used, i.e. JSON, GraphQL and WebSockets.

Access

The API is accessible as GraphQL over WebSockets and HTTP (via POST and GET requests), and there are plenty of client libraries available in most programming languages. When it comes to WebSockets, the GraphQL community is still in the process of standardizing the protocol. The leading contender for a standardized protocol over WebSockets is the graphql-ws library, which is what the All Aboard API uses.

  • HTTPS: https://api-gateway.allaboard.eu
  • WebSocket: wss://api-gateway.allaboard.eu

Try it out

Explore the GraphQL Schema and start making requests with the interactive API console. Visit the console

Test environment

While familiarizing yourself with the API you may want to use the test environment to avoid unnecessary charges.

Required headers

Other than the query and variables parameters required with every request, the API expects some required headers to be included.

api-key

Not all environments support custom headers when initializing WebSockets (e.g. web browsers). In these circumstances you can include api-key in the initial connection payload. See how, using graphql-ws connectionParams.

Get your API key

You manage user access and API keys from the Dashboard.

accept

Requests over HTTP require the Accept: application/graphql-response+json header.

session

Additionally, the session header should be included with every request. This header is used for debugging and logging purposes. The value can be any unique string that identifies the session.