Skip to content
  • There are no suggestions because the search field is empty.

Getting started with the GraphQL API

In this article we will go through the steps needed to get started with the FlightLogger API

What is the GraphQL API?

FlightLogger’s GraphQL API lets you query and manipulate your account data, such as flights, bookings, users, and training, using structured, flexible requests. It gives you full control over what data you fetch and helps you build integrations, reports, or custom tools.

So, in other words, an API key lets another system, such as a reporting tool, a website or software your school uses, connect to your FlightLogger data without anyone having to log in. You can think of it as a password for software instead of a person.

What you need to get started

  • An API key, created in your account

  • A GraphQL playground or API client to execute queries

What has changed

From now on, API keys are something you request from us rather than create yourself in the settings. We are doing this because we are building the things people use our API for today directly into Wingman (FlightLogger's AI Assistant), so you can get the same results without connecting anything yourself. Limiting new API keys gives everyone a smooth transition.

Using the API is a paid service. Before you decide, it is worth checking whether Wingman can already do what you need. We are happy to go through this with you.

How to get one

To get a key, you go through our senior account executive:

  1. Log into your FlightLogger account, and go to my/FlightLogger. Find the API page. You will now find a link to a booking form there.

Screenshot 2026-11-25 at 12.50.54

  1. Use the link to book a short conversation with our senior account executive.
  2. Tell us what you want to connect and why. We will go through it with you, including whether Wingman can cover it and what API access would cost.
  3. We then create the key for your school and send it to you.
  4. Make sure to copy it right away as it will not be available hereafter.
Screenshot 2023-04-27 at 11.34.12

 

You now have a valid key and accompanying token to use with the FlightLogger GraphQL API.

The token allows the person who uses it to communicate with the API on your behalf. It is therefore your responsibility to keep the token safe, and ensure it is not stolen/copied by anyone who shouldn't have access to it. 

Looking after your key

  • Keep it private. Anyone who has the key can see your school's data through the connection, so treat it like a password.
  • Only share it with the people or companies that set up the connection. Don't post it in emails to large groups, chats or documents that many people can open.
  • Tell us if it has been shared by mistake. We can replace it with a new one.

Executing a GraphQL query

To actually communicate with the API, you need some method of sending a GraphQL query to the FlightLogger GraphQL API. Conveniently, FlightLogger hosts a playground where you can easily interact with the API: FlightLogger GraphQL API Playground 

For non-playground users, GraphQL queries are accepted at the endpoint: https://api.flightlogger.net/graphql

In the playground, you will need to supply the aforementioned API token in order to query the API. To use your token, do the following:

  1. At the bottom of the playground view, click 'HTTP HEADERS'.
  2. Replace the TOKEN part of the Authorization header with your token. It should look something like this: "Authorization": "Bearer 95c286388..."

The token is now in place, and you can start communicating with the API, hooray! 🎉

Alternatives to the playground

The playground is an excellent place to start "playing around" with the API. If you require a more feature-rich way of interacting with our API you can use third-party API interaction clients like Insomnia or Postman.

Further reading

Now that you're able to communicate with the API it may be a good time to read up on some relevant info.

Introduction to GraphQL - The API uses the Graph Query Language (GraphQL) for its interactions. If you're unfamiliar, reading up on what GraphQL is, and how it works, is helpful.

FlightLogger API Reference - The API can do a lot of things, so an overview of what kind of data is available, and how to retrieve it is essential. The playground also provides information on the GraphQL schema.

Example API Queries Article - Contains some specific example queries to help get you started.

The Help Center - We will be adding new information regarding the API - and FlightLogger in general - here in the Help Center. Have a look around and enlighten yourself.