api initialization from accessToken