-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAT instead of API key #9
Comments
Hey there @timothoms -- thanks for bringing this to my attention! I'm not sure if they use (or will use) PATs in the same manner as they currently use the API key. Right now, the API key stored by When there's a clear path forward, I'll likely deprecate |
Great, thanks! Might be useful to keep set_airtable_api_key() until Airtable deprecates it in Jan 2024. Does this documentation help?: https://airtable.com/developers/web/api/authentication |
That's perfect, I hadn't seen that. That confirms that the tokens and api keys are used in the same way, so the I'm thinking that the cadence for retiring
Since the PATs have scope limitations, it seems like it might be useful to have a means of storing more than one PAT and being able to select between them. |
That sounds great, and seems the right way to go. I will try out the |
@timothoms did you get this to work with a PAT? If so, could you share how you did it? |
Yes, this worked as a drop-in replacement for me. I created a PAT with the scope "data.records:read" and then set it once with
If you want to immediately use it, you need to
Otherwise, restarting R should do it. You can check with
|
Thanks! read_airtable(test,id_to_col = T ) |
The R code looks correct to me, but there is an authorization issue. The error message indicates that the authentication token is invalid (see this). I'm guessing the problem is on the Airtable side, either the scope or access of the PAT is incorrect, or the user is not allowed the action, though the latter seems unlikely for just reading data. |
I've asked someone else on my team and it may be because our airtable is behind Okta, thanks for your help! |
Airtable is phasing out API keys by next year, eventually making users migrate to Personal Access Tokens (PATs). Can the set_airtable_api_key() function be used with PATs? If not, will there be a new function for this? Thanks!
The text was updated successfully, but these errors were encountered: