A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Hi @Jan Berlinger - credaris.ch
Thanks for reaching out to the Microsoft Q&A forum. I appreciate the details you shared along with the documentation link.
After reviewing the article you provided and your description, I noticed that the data used in step 2, "Use the import URL to upload an item", is expected to be in Base64-encoded FTS format.
Regarding the 403 Forbidden responses with Data: "<Base64Payload>", may I confirm whether this payload is a Base64-encoded EML file?
Additionally, please note that an Exchange mailbox item needs to be exported first before it can be imported into another folder. This ensures the item data is in the correct Base64-encoded FTS format.
For importing an EML file, Microsoft Graph supports scenarios where EML can be imported as a MIME format draft message. You can refer to this example:
Reference: Create message - Microsoft Graph v1.0 | Microsoft Learn
If you want to use mailbox import and export APIs for EML files, you can import the EML file into Outlook either by using the above API to create a draft message or by importing it directly into any folder through the New Outlook desktop version.
Once the items are imported, you can export them using exportItems. After you have the correct data format, try reproducing the steps to check if the issue persists.
I sincerely hope this information helps clarify your situation and supports you in resolving the issue. Please don’t hesitate to reply if you have any updates.
Thank you for your understanding.
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.