Added async/await to api methods.