# Is it possible to invoke the Rest API that the UI uses?

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-invoke-the-rest-api-that-the-ui-uses/21551>\
**Category:** Dynatrace API\
**Tags:** gui, dynatrace-api\
**Created:** [February 20, 2021, 8:21pm UTC](https://community.dynatrace.com/t/is-it-possible-to-invoke-the-rest-api-that-the-ui-uses/21551 "2021-02-20T20:21:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [February 20, 2021, 8:21pm UTC](https://community.dynatrace.com/t/is-it-possible-to-invoke-the-rest-api-that-the-ui-uses/21551/1 "2021-02-20T20:21:55Z")

</div>

Given that the UI uses a separate API than the environment API, it seems to me that it might not be accessible.

In any case, I would ask if anyone can give insight on this, if it might be used, or if there are any intentions of exposing it to the users that are willing to use it in an advanced form?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 20, 2021, 10:06pm UTC](https://community.dynatrace.com/t/is-it-possible-to-invoke-the-rest-api-that-the-ui-uses/21551/2 "2021-02-20T22:06:25Z")

</div>

Yes, technically it is, but I’d discourage using that API as may break without notice and you are also risking breaking some configuration if you want to do changes. Just by logging in and issuing correct requests (csrf\_token and Cookies), you are able to call it. Another method I can think of would be using some browser scripting tools (selenium for example).

I understand there are still areas not covered by the Config or Environment APIs. Just wondering - which API do you need to call and what is the use case?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [February 21, 2021, 10:08am UTC](https://community.dynatrace.com/t/is-it-possible-to-invoke-the-rest-api-that-the-ui-uses/21551/3 "2021-02-21T10:08:56Z")

</div>

[@Július L.,](https://community.dynatrace.com/users/16467/view.html) yes, I imagine it is possible, but I have only looked at the replies coming in via the Developer Tools. In some cases, that’s a real help, as I have noticed in the following post, which involved this technique and some ggplot stitching:

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3D766e99f5-1b6b-42b0-994b-87d4d9b453f9&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**

In my case, I’m looking for a way to get data for a specific service, where there are too many types of requests to get them from Request Attributes. I have upvoted an old RFE that is basically what I need:

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3Dc473eed4-fda4-48d9-89ef-b50af29a9559&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [February 21, 2021, 10:13am UTC](https://community.dynatrace.com/t/is-it-possible-to-invoke-the-rest-api-that-the-ui-uses/21551/4 "2021-02-21T10:13:04Z")

</div>

Just quick notice that I was trying to find a solution that would involve API tokens, and not passing authentication information from an existing session. The reason is that I’m trying to automate it, of course…

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 26, 2021, 4:29pm UTC](https://community.dynatrace.com/t/is-it-possible-to-invoke-the-rest-api-that-the-ui-uses/21551/5 "2021-02-26T16:29:01Z")

</div>

So our customers to workaround missing pieces in REST APIs use Selenium automation to just click things in UI instead. Definitely more secure.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [February 26, 2021, 9:53pm UTC](https://community.dynatrace.com/t/is-it-possible-to-invoke-the-rest-api-that-the-ui-uses/21551/6 "2021-02-26T21:53:38Z")

</div>

Yes, I could even use RPA and get it, but doesn’t make sense 😉

Definetly, it would make sense that this data is available…
