Dear Dharanya K,
Good day!
Thank you for posting in Microsoft Community. We are happy to help you.
As you mentioned | Retrieve DLP reports using API |, I would like to share some information with you, as we are focusing and handing here Microsoft 365 Business subscription and Exchange Online related scenario on this forum community and we have limited knowledge information for API related scenario.
Yes, I have gone through your mentioned concern and seems like you are trying to find API sample formats, if yes, for that Microsoft has specific dedicated support channel and I believe you may need to contact and place your requirement in our dedicated Microsoft Q&A forum support community channel so that our related expert community member can further provide you some possible information / guidance from their end for API format.
Here is dedicated forum support channel to place your concern: microsoft-graph-data-connect - Microsoft Q&A
I would really appreciate your precious time and cooperation.
Stay safe and healthy.
Sincerely,
Darpan | Microsoft Community Moderator