Hi @Muhammad Arsal ,
1.Make sure your scope
value is set to https://
{tenant-name}.sharepoint.com/.default
.
2.Build your REST API link, Here is an example of what the URL could look like:
https://mycompany.sharepoint.com/_api/web/GetFolderByServerRelativeUrl('Shared Documents/Target Folder')/Files
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.