Please refer to specific API Documentation for more details, Also you can reach us via this contact form for an advice which API to use where and when.


    To start using Air France-KLM APIs you will need to have a user account and be signed in. Before you dive into the code, you first need to register an application on our developer Portal. This is where you will find all of your keys and information about your application.

    Here is a summary of the Application form fields:

    Field Name Use
    Name Of Your Application This is used to help you recognize your applications
    Website This is for the website that is associated with your application (if there is one)
    Describe This is just a text description for what you are going to do with the key.
    Register Callback Url This is only used for OAuth flows
    • API Plans and Keys

      In Air France - KLM , we group APIs in to different Plans.

      • Plans : Each API Plan constitutes a set of entitlement rules, limits, and filters that might be enforced when developers make calls to specific API methods or resources, for example, the number of calls per second.
      • Keys : Once after your sign in with your application and usage details. You can request a key for specific API plan.
    • Available Plans and Upgrade options

      At this moment , all public APIs contains only one plan i.e 'Default'.

      • Default Plan : Number of calls per second = 5, Number of calls per Day 5000.
      • Custom plans and upgrade options : Please send us your request using contact form with the description of your application along with an estimate of how many calls per second and calls per day your application will make. Our team will review your request and contact you back.
    • Requesting API Keys & My Account Information

      Once you have complete the registration step with your application, We require you to have an approved API key to a specific API product before you can use the Air France - KLM APIS. Request to Issue a new key for Default Plan should already be selected by default. This API key is associated with your developer account.

      We will send you an email notification when your key request is approved. After it is approved, you can view the subscription details within your developer profile. You can find your applications and API Key details under My Account page. From here you can edit your application details or add another API to it, as well as find your API keys.

      You now have access to the APIs using the new API key that you have registered.

    • Access to Internal and Partnered API's

      Visibility and usage of all other API products(Internal & Partnered APIs) are only available to Internal staff. Please contact us, if you want to know more info and other contract procedures for access.


    Non-OAuth Flows
    • Open Data
    • All OpenData endpoints are protected with non-OAuth flows, You can simply access the resource using your API keys alone.

    Please refer to the respective product/API documentation in detail to know which grant should be used for specific API.

    OAuth Flows :

    Most APIs on the Air France - KLM developer portal are protected via the OAuth 2.0 security framework (CC & ROPC)

    This framework allows / requires both the API client and the end-user to authenticate. The result of authentication (and consent) is a so-called OAuth Access Token, which then can be used for a certain period of time to make API calls.

    After the access token expires, depending on the policy either a Refresh Token can be used to retrieve a new Access Token, or a new round of authentication is required for a new Access Token.

    OAuth Token URL :

    In Air France - KLM we use various kinds of authorization flows mentioned below :

    • Client Credentials(CC) Grant :

      To consume endpoints protected with Client Credentials Grant Type, you'll typically need three things to get started.i.e access token url , client_id , client_secret. You can find your key information under My Account section.

    • Resource Owner Password Credentials (ROPC) Grant :

      To consume endpoints protected with Resource Owner Password Credentials, you need user name, password (Air France - KLM Account or Flying Blue account credentials), api key and secret. you can request for access token using access token url mentioned above.




    • Open Data - EXAMPLE

      You can directly use your API key to access Open Data resource endpoints

      Resource Request:
      curl - X GET \
      https: // \
      -H 'accept: application/hal+json' \
      -H 'accept-language: en-US' \
      -H 'afkl-travel-country: NL' \
      -H 'afkl-travel-host: KL' \
      -H 'api-key: testapikey'

    • Client Credentials - EXAMPLE

      Token Request
      $ curl -d 'grant_type=client_credentials' -u fakeKey:fakeSecret
      Resource Request
      $ curl<api>/<method-reference> -H 'Authorization: Bearer kkkkkkkkkkkkkkk'
        "buildTimestamp" : "2016-10-23 09:50",
        "timestamp" : "Thursday, October 30, 2016 8:54:38 AM CET",
        "version" : "0.0.45",
        "response" : "pong",
        "language" : "English",
        "country" : "United States"
    • Resource Owner Password Credentials - EXAMPLE

      Token Request
      $ curl -X POST -d 'grant_type=password&' -u fakeApiKey:fakeSecret
      Resource Request
      $ curl<api>/<method-reference> -H 'Authorization: Bearer kkkkkkkkkkkkkkk'
        "buildTimestamp" : "2016-10-23 09:50",
        "timestamp" : "Thursday, October 30, 2016 8:54:38 AM CET",
        "version" : "0.0.45",
        "response" : "pong",
        "language" : "English",
        "country" : "United States"

    You can also test our APIS in the Portal it self using our io-docs page. I/O Docs will generate the API call for you.

    • When you first visit the I/O you will be presented with a drop down of all the available APIS Depends on your API consumer plan. Once you select an API from the dropdown,a box will appear asking for your API key.

    • Select an endpoint from the resource endpoint list with respective methods reference for the choosen API.

    • From an Endpoint Reference, click Try it