Hi @Angel Escamilla,
Per my test, I can reproduce your issue like following
After doing some research, I found that /sites/{site-id}/drive is to access the default drive (document library) for the given site. We don't need to add Shared%20Documents in the path. The api is to get the items in subfolders of Shared%20Documents. I created a folder in the Shared%20Documents named test and a docx file named test.docx in the folder. Then we can use the api like following
And we are unable to get the files in the root path of the library, for example I created a file called test.txt in Shared Document. The api will also return 404. For these items you can get tem by following api
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/driveItem
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.