Accounts API controller