# Capture the Request Body of a POST Request in Dynatrace

**URL:** <https://community.dynatrace.com/t/capture-the-request-body-of-a-post-request-in-dynatrace/34310>\
**Category:** Open Q&A\
**Tags:** distributed-traces-classic, request-attributes\
**Created:** [February 28, 2022, 5:44pm UTC](https://community.dynatrace.com/t/capture-the-request-body-of-a-post-request-in-dynatrace/34310 "2022-02-28T17:44:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashank\_b\_agra](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank\_b\_agra](https://community.dynatrace.com/u/shashank_b_agra)\
**Post date:** [February 28, 2022, 5:44pm UTC](https://community.dynatrace.com/t/capture-the-request-body-of-a-post-request-in-dynatrace/34310/1 "2022-02-28T17:44:28Z")

</div>

_Summary:&nbsp;Dynatrace can capture POST request bodies for deeper insight into transactions and API calls. This thread explains configuration steps, privacy considerations, and best practices for analysing request payloads securely._

Hi, I’ve a service monitored in Dynatrace and our front end makes a POST call to that service using an endpoint ‘/graphql’ and sends a Payload/Body.

I am trying to find some performance issues with my service, but the investigation is not leading anywhere unless we capture what is being sent in the request.

Is there a way to capture the payload in Purepath or elsewhere in Dynatrace to see what is being sent in the request? It would be ideal to understand which specific requests are affecting the application’s performance.

If I inspect the browser of my application, the payload appears as follows (it’s a JSON body) - screenshot-1.

BUT if I look at Dynatrac,e it just shows like this - screenshot-2

 ![screenshot-1.PNG](https://global.discourse-cdn.com/dynatrace/original/3X/e/9/e9bf20974f5d60ce6a7f4d257ba27000b876f502.png)  
 ![screenshot-2.PNG](https://global.discourse-cdn.com/dynatrace/original/3X/b/d/bdcc2504cfd9111c327e2a413b226816f2a657a6.png)

---

<div class="post-metadata">

**Author:** ![mgome](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mgome](https://community.dynatrace.com/u/mgome)\
**Post date:** [February 28, 2022, 6:16pm UTC](https://community.dynatrace.com/t/capture-the-request-body-of-a-post-request-in-dynatrace/34310/2 "2022-02-28T18:16:39Z")

</div>

This is not currently possible. There is a RFE for capturing the POST body.

[https://community.dynatrace.com/t5/Dynatrace-product-ideas/RFE-capture-POST-Bodies/idi-p/150484](https://community.dynatrace.com/post/150484)

---

<div class="post-metadata">

**Author:** ![axel\_ayala](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@axel\_ayala](https://community.dynatrace.com/u/axel_ayala)\
**Post date:** [March 7, 2022, 3:24pm UTC](https://community.dynatrace.com/t/capture-the-request-body-of-a-post-request-in-dynatrace/34310/3 "2022-03-07T15:24:22Z")

</div>

We have never captured the body of a request, due to both resource consumption and security concerns. The workaround that I have explored for this is to find a method that exposes the same information and access it through a request attribute.

---

<div class="post-metadata">

**Author:** ![KlausEnzenhofer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/klausenzenhofer/32/10828_2.png) [@KlausEnzenhofer](https://community.dynatrace.com/u/KlausEnzenhofer)\
**Post date:** [April 4, 2023, 6:43am UTC](https://community.dynatrace.com/t/capture-the-request-body-of-a-post-request-in-dynatrace/34310/4 "2023-04-04T06:43:30Z")

</div>

Hi,  
You may want to investigate business events to solve your use case

Blog:

> **[The value of business events: How IT can increase business agility](https://www.dynatrace.com/news/blog/the-value-of-business-events-how-it-can-increase-business-agility/)**
>
> Dynamic business conditions demand in-the-moment business insights. Discover how Dynatrace delivers real-time business observability for data-driven business decisions.

Observability clinic

[![](https://global.discourse-cdn.com/dynatrace/original/3X/3/3/33d181f058c4acdfb1389ccd6ebf92108210f525.jpeg "Dynatrace Business Events: Expanding Observability into your business domain") ](https://www.youtube.com/watch?v=a5Kp3WJ8NHU&list=RDCMUCcYJ-5q_AfmjQ4XTjTS0o3g)

FYI:&nbsp; [@DanielMarschnig](https://community.dynatrace.com/user/44817)
