Hi @Josh Earel ,
The 401 Unauthorized error message in SharePoint typically indicates that you do not have the necessary permissions to access the list attachment.
1.To access sharepoint via a web url, first make sure you have access rights (e.g. read, edit, full control, not the “Files.ReadWrite.All” permission in the API) to the list item (attachment).
2.Try adding the suffix “?web=1” to the url.
https://{sharepointURL}/sites/{SiteName}/Lists/{ListName}/Attachments/2323/{fileName}.pdf?web=1
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.