Skip to main content
Version: Cloud

Get an API access token

AvailableCoreAvailableStandardAvailablePlusAvailableProAvailableEnterprise FlexAvailableSelf-Managed Enterprise Compare

Most programmatic interactions with Airbyte require an access token. An access token represents an individual Airbyte user, and it has the same permissions as that Airbyte user.

tip

Using a service account for this purpose is helpful. If you rely on making requests to the Airbyte API using personal credentials, your apps and scripts could break if someone leaves your organization.

The process to generate an access token involves two steps.

  1. Create an application in Airbyte.
  2. Use that application to get an access token.

Prerequisites

You need access to either of the following:

  • An Airbyte Cloud organization
  • A self-managed deployment of Airbyte that exposes the airbyte-server service

Step 1: Create an application

An Airbyte application represents an individual user using a client ID and client secret.

  1. In Airbyte's UI, click your name > User settings > Applications.

    Create an Application

  2. Click Create an application.

  3. Give your application a descriptive name and click Submit.

    Name Application

  4. Click the icon to expose your client secret.

    Get Application Client ID and Client Secret

Step 2: Get an access token

You can exchange your client ID and client secret for an access token. Use this access token to make requests. Access tokens expire in 15 minutes. Each time your access token expires, request a new one.

You can manually generate an access token from Airbyte's UI.

  1. Still on the Applications page, hover over the application for which you want to generate an access token.

  2. Click Generate access token.

  3. Click Copy or Download access token.

  4. Close the dialog.

Step 3: Use your access token

Once you have an application and/or access token, use it to make requests from your source code. Learn more in the Developers section.