Perhaps I’m missing something, but for whatever reason I cannot get a list of bases available to me using the latest OAuth API integration.
I have “shared” a couple of bases that I want to be available via the API, but I get nothing but an empty array when querying the List Bases
metadata endpoint.
curl "https://api.airtable.com/v0/meta/bases" -H "Authorization: Bearer <access_token_from_oAuth_response"
{"bases":[]}
I have confirmed that my access_token
is indeed good does return my user ID and scopes allowed via the token.
curl "https://api.airtable.com/v0/meta/whoami" -H "Authorization: Bearer <access_token_from_oauth_response>"
{"id":"<my_user_id>","scopes":["data.records:read","schema.bases:read"]}
I presume that I haven’t “shared” the base in the way the API expects, but I have not found where I might do that.
Ian