# Postman for effortless Dynatrace API access across environments

**URL:** <https://community.dynatrace.com/t/postman-for-effortless-dynatrace-api-access-across-environments/20194>\
**Category:** Dynatrace Tips\
**Tags:** usability, dynatrace-api\
**Created:** [August 31, 2020, 1:43pm UTC](https://community.dynatrace.com/t/postman-for-effortless-dynatrace-api-access-across-environments/20194 "2020-08-31T13:43:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [August 31, 2020, 1:43pm UTC](https://community.dynatrace.com/t/postman-for-effortless-dynatrace-api-access-across-environments/20194/1 "2020-08-31T13:43:54Z")

</div>

I’ve been updating Postman collections for myself for a while to make it easier to work with the Dynatrace API across multiple clusters, tenants, and environments.

I have put the files on [github](https://github.com/pahofmann/dynatrace-postman-collections) now, maybe someone will find it useful.

If you need the Account Management API check out the [Postman Collection](https://community.dynatrace.com/post/221026#M987) from my fellow :dynamight:DynaMight&nbsp;[@DanielS](https://community.dynatrace.com/user/35788)!

Setup is very quick, then you can just select the request and environment against which to execute it.

Here is a short guide:

Import collections

Postman is available for free from [postman.com](https://www.postman.com/).

Import (file → import) the [collection](https://learning.postman.com/docs/sending-requests/intro-to-collections/) .json files for the APIs you want:

- [Environment API v1](https://github.com/pahofmann/dynatrace-postman-collections/blob/master/specs/Dynatrace-Environment-API-v1.postman_collection.json)
- [Environment API v2](https://github.com/pahofmann/dynatrace-postman-collections/blob/master/specs/Dynatrace-Environment-API-v2.postman_collection.json)
- [Configuration API](https://github.com/pahofmann/dynatrace-postman-collections/blob/master/specs/Dynatrace-Configuration-API.postman_collection.json)
- [Cluster API v1](https://github.com/pahofmann/dynatrace-postman-collections/blob/master/specs/Dynatrace-Cluster-API-v1.postman_collection.json)
- [Cluster API v2](https://github.com/pahofmann/dynatrace-postman-collections/blob/master/specs/Dynatrace-Cluster-API-v2.postman_collection.json)

A separate collection for each, including all requests of that API, will be created:

 ![26320-collections.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/bfb51213b66ad9d8525fd759b4059b3a66b3b200.png)

Create environments

For each of your Dynatrace environments/tenants you want to use, add a postman environment via manage environments → add:

 ![26325-manage-environments.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/1/e19d388fd46333fd92227480de384b5d28519e76.png)

The environment needs two variables (names are case sensitive!):

- **DT\_HOST**
  - URL to the environments
    - For managed: [your-dt-domain.com/e/Environment-ID](http://your-dt-domain.com/e/Environment-ID)
      - [example.com/e/b80b158e-ev23-4330-30fcc-c4391bbx6ce2](http://example.com/e/b80b158e-ev23-4330-30fcc-c4391bbx6ce2)

    - For SaaS: [Env-ID.live.dynatrace.com](http://Env-ID.live.dynatrace.com)
      - [abc133769.live.dynatrace.com](http://abc133769.live.dynatrace.com)

- **DT\_TOKEN**
  - An API token for the environment

 ![new-environment](https://global.discourse-cdn.com/dynatrace/original/3X/6/8/68a742f1b075522c185411a948e9a39236d1da9b.png)

Request away!

Now you can open any request and easily execute it against different Dynatrace environments by selecting the environment on the top right:  
[![Dynatrace API Postman Collections](https://global.discourse-cdn.com/dynatrace/original/2X/6/67a4b6c0879aeebb779e814ece7c9483c5f36c67.png)](https://github.com/pahofmann/dynatrace-postman-collections/blob/master/pictures/send-request.png)

---

_[View the full topic](https://community.dynatrace.com/t/postman-for-effortless-dynatrace-api-access-across-environments/20194)._
