Safely probes the current token to determine what workspaces and bases
are accessible. Modelled after usethis::git_sitrep() and usethis::proj_sitrep().
Useful for debugging authentication issues and understanding the scope of
the current token.
Arguments
- token
Personal access token (resolved via
air_token()ifNULL).
Value
A list with:
user: User info fromat_whoami()(id, andemail/scopesif the token grants them)scopes: Character vector of token scopes, orNULLif not exposedbases: Tibble of accessible bases (id,name,permissionLevel)error:NULLif successful, otherwise a message string
Note: the non-enterprise Airtable API does not expose workspace names or the workspace each base belongs to, so workspaces cannot be enumerated from a token alone.