Hi @Karteek Koraganji ,
To get access token for SharePoint REST API, please use the below Auth URL and Access Token URL:
Auth URL: https://login.microsoftonline.com/common/oauth2/authorize?resource=https%3A%2F%2F<tenant_name>.sharepoint.com
Access Token URL: https://login.microsoftonline.com/common/oauth2/token
When you click Get Access Token, it would request you to sign in. After signing in, you would access it successfully.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.