# Use the ActiveGate as a proxy to the SaaS tenant for Rest API Calls

**URL:** <https://community.dynatrace.com/t/use-the-activegate-as-a-proxy-to-the-saas-tenant-for-rest-api-calls/30711>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [March 7, 2021, 6:53am UTC](https://community.dynatrace.com/t/use-the-activegate-as-a-proxy-to-the-saas-tenant-for-rest-api-calls/30711 "2021-03-07T06:53:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DT\_Team\_Matrix](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dt_team_matrix/32/27654_2.png) [@DT\_Team\_Matrix](https://community.dynatrace.com/u/DT_Team_Matrix)\
**Post date:** [March 7, 2021, 6:53am UTC](https://community.dynatrace.com/t/use-the-activegate-as-a-proxy-to-the-saas-tenant-for-rest-api-calls/30711/1 "2021-03-07T06:53:33Z")

</div>

Hi,

We would like to send rest API to the cluster through an environment activegate we have and not directly to the Saas Instance. I know that for managed, the target url includes the environment id. What should be included in our case?

Gil.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 7, 2021, 7:33am UTC](https://community.dynatrace.com/t/use-the-activegate-as-a-proxy-to-the-saas-tenant-for-rest-api-calls/30711/2 "2021-03-07T07:33:24Z")

</div>

Hi Gil,

The url will be&nbsp;_https://{AG-ip}:9999/e/{SaaS-Tenant-ID}_

.i.e. if your SaaS url is _https:// **xyz12345**.live.dynatrace.com_ you should use&nbsp;_https://{AG-ip}:9999/e/ **xyz12345** _

HTH

Yos
