define the account_details api