Jun 24, 2024 04:34 AM - edited Jun 24, 2024 04:36 AM
There's an Airtable that's been shared with my account (A) from account (B). I have a personal access token from account A.
- The Airtable's restricted to account A's domain
- The Airtable is password protected
Is it possible to use the API to fetch the records of the Airtable?
I've tried this approach:
Jun 24, 2024 05:29 AM
Fetching the records of an Airtable base via API is generally possible.
They way these personal access tokens work is that they each have their own scope that can be freely defined. What I mean by that is that you can select what types of operations a personal access token can do and which bases can be accessed. Can you double check whether the access token you are using has the correct scope for your purposes?
Jun 24, 2024 06:48 AM
Hmm, could I confirm you're a collaborator in this base?
Jun 24, 2024 09:32 AM
The personal access token has these scopes:
data.records:read
schema.bases:read
Jun 24, 2024 09:32 AM - edited Jun 24, 2024 09:33 AM
I can confirm that I can access the data from the web Airtable UI when logged in with the account that generated the Personal Access Token.
I can't do it via the API myself.
Jun 25, 2024 02:54 AM
I tried recreating the issue with your first approach, and I successfully retrieved data from my own Airtable base using my personal access token.
Could you provide additional details, such as any error messages you encountered?
Jun 25, 2024 03:24 AM
"for password-protected shared table" - I do not own the airtable. It's shared with my account.
Jun 25, 2024 06:35 AM
as far as I know the password protection only applies to specific views. The fact that the airtable base has been shared with your account should not affect the scopes of the access token you are using.