Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
We are tracking an issue where changing password can result into it taking a long time to get access to the API again (upto 1 day). For now if you wait for a day you should get access to the API again.