Skip to main content

API deprecation: What if I am using airtable.js?

  • January 24, 2024
  • 1 reply
  • 40 views

Forum|alt.badge.img+2

TL;DR: Do I just need to replace my Airtable API key with the new personal access token or is there anything else?

I read about the Airtable API key depreciation notice that says API keys will no longer work from Feb 1, 2024.

I am using the official NPM library airtable.js in my Next.js project. This is how I am configuring Airtable in my codebase:

 

const base = new Airtable({ apiKey: process.env.REACT_APP_AIRTABLE_API }).base( process.env.REACT_APP_AIRTABLE_BASE )

 

To adhere to the new changes, I have created a personal access token from `/create/tokens` as mentioned in the development guide. Then, I changed the value of `REACT_APP_AIRTABLE_API`in my `.env` with the token generated from `/create/tokens`.

What else do I need to do? Everything seems to work fine but I just want to double check if I am missing anything. 

Thanks.

 

 

 

1 reply

Joseph_Petty
Forum|alt.badge.img+3
  • New Participant
  • January 31, 2024

Hey @bottlerekted , I just tested Airtable.js v0.12.2 with the new personal access token and it works fine. You shouldn't have to change anything besides replacing the key with a new token, unless you're on an older version of the library that isn't compatible.