How to export the API Request & Response

Hi,

I am having a REST API for which I want to save the both Request and response.
If we want o save the each request & Response body with dynamic data how can we do that?