Hi @Avinash Pathak,
For Azure AD App-Only for SharePoint, you could get the access token like this:
Grant Type : Authorization Code
Callback Url : this should be the AAD App redirect 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
Client ID : <client_ID>
Client Secret : <Client-secret>
When you click Get Access Token, it would request you to sign in. After signing in, you would access it successfully.
Reference: https://www.ludovicmedard.com/use-postman-and-azure-ad-to-send-rest-request-to-sharepoint-online/
For SharePoint app only. The XML should be like following
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
</AppPermissionRequests>
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.