Adding an API for accounts