Monitor incoming API requests

Hi all,

I’m looking for a way to see the inbound API queries that reach my MongoDB API endpoints.
The Data API Logs only allow me to see that a request was received and which endpoint was queried, but I’m looking for the actual API request that MongoDB received, and if possible the response that MongoDB sent back.

I’m asking this because I’m trying to build a connector between an application and MongoDB. The problem is that from my application, I cannot see the request sent because it’s UI based and I don’t have access to the backend - which means that I can’t see the cURL output that my application generates.

But if there’s a way to see the request that MongoDB receives (i.e. what my application sent), it would help a lot.

Is it possible and if so, can anyone explain how to do that?

Thanks a lot!