Hello Brendan,
Thank you for reaching out to Microsoft Support!!
Based on the error that you are encountering, 401 unauthorized access when trying to access mailbox might be due to the account type which is being accessed.
As per the documentation, for the personal Microsoft Account delegated permissions are supported.
Link: list Mailfolders Graph API
We recommend you testing the API using the me/mailfolders
by signing in as a user through Graph Explorer - Graph Explorer or try using work account with application permissions and let us know the response.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.