# Retrieve active accounts for the authenticated user
accounts_tbl <- list_md_active_accounts()
print(accounts_tbl)List active MotherDuck accounts
Source: R/api.R
Retrieves a list of active MotherDuck accounts available to the authenticated user, returning the results as a tidy tibble.
Usage
list_md_active_accounts()Value
A tibble with two columns:
-
account_settings: configuration keys for the active accounts. -
account_values: corresponding configuration values.
Details
This function queries the MotherDuck REST API endpoint (https://api.motherduck.com/v1/active_accounts) using the token from the MOTHERDUCK_TOKEN environment variable.
See Also
Other db-api: configure_md_user_settings(), create_md_access_token(), create_md_user(), delete_md_access_token(), delete_md_user(), list_md_user_instance(), list_md_user_tokens(), show_current_user()