Hi @Bas Nab ,
Thank you for posting in this community. During my testing, even newly created Lists can be retrieved by the SharePoint REST API.
It seems like you're able to authenticate via OAuth and can access certain SharePoint data, but you're facing an issue where an API call for a specific list returns a 404 error. Here are some troubleshooting steps to help you resolve the issue:
- Verify List Permissions
Ensure that the list you're trying to access is not restricted by permissions. If the list has unique permissions or is hidden from certain users, your API call might be blocked.
- Check List Title and API Endpoint
Double-check the list title in the URL you're using. In SharePoint, the title might not be exactly as you expect (e.g., there might be special characters or trailing spaces). Try using the List GUID instead of the title to see if that resolves the issue. For example, instead of calling /GetByTitle, try using /GetById if you have the list's GUID.
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.