# Update Airtable's API key to Access Token

If you're using **Airtable**, it's essential to migrate from legacy API Keys to Personal Access Tokens for improved security and functionality. This guide is for users who already have an API collection created with Airtable and need to switch from an API key to an Access Token.

## Why Update?

{% hint style="danger" %}
**API keys deprecation ended on Feb 1, 2024**.

After this date, API keys will stop working and you will have to migrate to personal access tokens. Personal access tokens allow you to more securely grant API access to Airtable data. [Learn more](https://support.airtable.com/docs/airtable-api-key-deprecation-notice)
{% endhint %}

Personal Access Tokens offer enhanced security and better control over your Airtable API access. By migrating, you ensure a more robust and modern authentication method.

## How to update the API key to Personal Access Token?

1. **Access the Airtable Developer Hub:**

   * Open Airtable and navigate to your account in the upper right corner.
   * Click on the dropdown menu and choose "Developer Hub." Alternatively, if you're already signed in, click [here](https://chat.openai.com/c/d9f84f1e-b44d-4726-a845-5108ce77ef3b) to access the Developer Hub directly.

   <figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2FqgrnSd5u9BwAkHftFxXj%2FUpdate%20Airtable%E2%80%99s%20API%20key%20to%20Acces%20Token.jpg?alt=media&#x26;token=3693fdf5-2cc3-4f0b-81e4-daac6a7f099d" alt=""><figcaption></figcaption></figure>
2. **Creating the Personal Access Token:**
   * Inside the Developer Hub, go to the "Personal access tokens" tab.
   * Click on "Create new token."
   * **Set a name** for your token, such as "**Bravo"**.
   * **Add Scopes**: Click on "+ Add a scope" and ensure both "<mark style="color:red;">`data.records:read`</mark>" and "<mark style="color:red;">`data.records:write`</mark>" are selected.
   * **Select the workspace and Base:** Click on "+ Add a base" and choose either "All workspaces" or a specific base according to your preference.
   * Click **Create token**. Make sure you verified your email first.
   * A modal will appear, confirming the token creation. **Copy the generated token**.

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2Fhq4v9ljnt4FhM9q0iOWx%2FUpdate%20Airtable%E2%80%99s%20API%20key%20to%20Acces%20Token2.jpg?alt=media&#x26;token=f61994a0-a2e2-4663-8149-5585a9bfa6ac" alt=""><figcaption></figcaption></figure>

3. **Integrating Token in Bravo:**
   * In Bravo, navigate to the Account Collection or Data collection within your app.
   * Within the API collection and beside the API collection name, locate the **gear icon** and select the "**Authentication**" tab.
   * Choose **"Bearer" as the authentication type** and **paste the copied toke**n into the designated field.
   * This sets up the new access token for the entire API collection, streamlining the process and avoiding the need to add it to each request individually.

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2FjU4R2NBgYWYDhzLRKRXJ%2FUpdate%20Airtable%E2%80%99s%20API%20key%20to%20Acces%20Token3.jpg?alt=media&#x26;token=27572a08-7c01-42dd-be7e-64b86f6f1f6a" alt=""><figcaption></figcaption></figure>

4. Click on **Save** and you're done! :tada: Run a test to ensure that your Bravo project successfully connects to Airtable with the new Personal Access Token.&#x20;

{% hint style="info" %}
If you're creating the API collection with Airtable from scratch, follow our guide: [Using the Airtable API Wizard](https://docs.bravostudio.app/connect-api/set-up-api-requests/api-wizard-importer/airtable-using-the-airtable-api-wizard).
{% endhint %}
