# Enable Secret Http in Custom Problem Notification

**URL:** <https://community.dynatrace.com/t/enable-secret-http-in-custom-problem-notification/32864>\
**Category:** Alerting\
**Tags:** problem-detection, problems-classic, dynatrace-api\
**Created:** [October 1, 2021, 7:01am UTC](https://community.dynatrace.com/t/enable-secret-http-in-custom-problem-notification/32864 "2021-10-01T07:01:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nakb](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nakb](https://community.dynatrace.com/u/nakb)\
**Post date:** [October 1, 2021, 7:01am UTC](https://community.dynatrace.com/t/enable-secret-http-in-custom-problem-notification/32864/1 "2021-10-01T07:01:15Z")

</div>

Hi,

I am trying to create a new problem notification using the API, but there is no option to toggle **Secret Http Header Value** , does anyone have idea how to achieve this.

 ![naveen_0-1633071575029.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/790dea91a03dd6fc86012483d2b53791eb9f58b1.png)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [October 29, 2021, 6:59pm UTC](https://community.dynatrace.com/t/enable-secret-http-in-custom-problem-notification/32864/2 "2021-10-29T18:59:39Z")

</div>

You are exactly right, from the API there is no designator to enable if this is a secret http value or not. It can only be done in the UI as of today. I would recommend tossing in a RFE so they can build that in to the API.

Test Results off:

 ![ChadTurner_0-1635533851262.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/fa2e6acf165de730ee22cc9ba330b604d9fbcfa4.png)

ON:

 ![ChadTurner_1-1635533922312.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/84ed70735d0e4198b387d6b694ca74ff15070b9e.png)

I wonder if you just need to pass the value encoded for it to work, but i’d have to leave that to be confirmed from a Dev person.

---

<div class="post-metadata">

**Author:** ![nakb](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nakb](https://community.dynatrace.com/u/nakb)\
**Post date:** [November 15, 2021, 6:34am UTC](https://community.dynatrace.com/t/enable-secret-http-in-custom-problem-notification/32864/3 "2021-11-15T06:34:57Z")

</div>

Thanks Chad for the confirmation.

---

<div class="post-metadata">

**Author:** ![dirk\_wall](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dirk_wall/32/4849_2.png) [@dirk\_wall](https://community.dynatrace.com/u/dirk_wall)\
**Post date:** [April 19, 2022, 7:16pm UTC](https://community.dynatrace.com/t/enable-secret-http-in-custom-problem-notification/32864/4 "2022-04-19T19:16:26Z")

</div>

Hi [@nakb](https://community.dynatrace.com/user/41100), [@ChadTurner](https://community.dynatrace.com/user/14877),

If you use the settings API (POST /api/v2/settings/objects) instead of the problem notifications API, you can create secret HTTP header values through the API. We’re in the process of figuring out how to communicate this to the broader audience. Here is an example payload:

 ![dirk_wall_0-1650395680680.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/44d8a2edf215e7b0f92c6106934e7f4150d2b389.png)

After the POST call, you can’t read the secret values in the UI (duh), but if you try it out, e.g. with [webhook.site,](https://webhook.site/) you’ll see that this works just fine.

Hope this helps,

Cheers,

Dirk

---

<div class="post-metadata">

**Author:** ![adambrown12321](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@adambrown12321](https://community.dynatrace.com/u/adambrown12321)\
**Post date:** [May 9, 2024, 10:27am UTC](https://community.dynatrace.com/t/enable-secret-http-in-custom-problem-notification/32864/5 "2024-05-09T10:27:52Z")

</div>

This is a good answer, would be good to have this somewhere in the API docs! Unless I just couldn’t find it there that is…
