# Documentation and Environment Variables

**URL:** <https://community.postman.com/t/documentation-and-environment-variables/9370>\
**Category:** Help Hub\
**Created:** [December 2, 2019, 4:42pm UTC](https://community.postman.com/t/documentation-and-environment-variables/9370 "2019-12-02T16:42:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crystal](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/crystal/32/3371_2.png) [@crystal](https://community.postman.com/u/crystal)\
**Post date:** [December 2, 2019, 4:42pm UTC](https://community.postman.com/t/documentation-and-environment-variables/9370/1 "2019-12-02T16:42:57Z")

</div>

Hi,

I have an api that I am trying to create documentation for. The domain for the api will change depending on the value of the environment.

When I create the documentation, i see my environment variable as part of the request, but I don’t actually see the value associated with it. How do I see the actual value?

For example, I have a local environment and prod environment

Currently, the request for the documentation is {{DATA\_API\_HOST}}/test in the actual documentation, I would like to see [http://localhost/test](http://localhost/test)  
Similarly in the prod environment, i see {{DATA\_API\_HOST}}/test but I would like to see [https://www.example.org/test](https://www.example.org/test)

---

<div class="post-metadata">

**Author:** ![suesmith](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/suesmith/32/2307_2.png) [@suesmith](https://community.postman.com/u/suesmith)\
**Post date:** [December 2, 2019, 4:52pm UTC](https://community.postman.com/t/documentation-and-environment-variables/9370/2 "2019-12-02T16:52:55Z")

</div>

Hi there! 👋

I believe this should work - have you tried the environment drop-down in the docs page to select the relevant environment? If that doesn’t work if you could screengrab your reference to the environment in the Postman UI, ideally while hovering over the variable reference that would be great. Screengrab of the relevant bit of your docs might help too.

---

<div class="post-metadata">

**Author:** ![crystal](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/crystal/32/3371_2.png) [@crystal](https://community.postman.com/u/crystal)\
**Post date:** [December 2, 2019, 4:57pm UTC](https://community.postman.com/t/documentation-and-environment-variables/9370/3 "2019-12-02T16:57:45Z")

</div>

Hi!

Thanks for the quick reply. I did do the dropdown, but I just noticed that I used the wrong environment variable name. That’s why it wasn’t generating! I am so sorry! Thank you so much!

---

<div class="post-metadata">

**Author:** ![suesmith](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/suesmith/32/2307_2.png) [@suesmith](https://community.postman.com/u/suesmith)\
**Post date:** [December 2, 2019, 5:02pm UTC](https://community.postman.com/t/documentation-and-environment-variables/9370/4 "2019-12-02T17:02:45Z")

</div>

Great! Thanks for the update. 🎉

---

<div class="post-metadata">

**Author:** ![Ra\_Na](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@Ra\_Na](https://community.postman.com/u/Ra_Na)\
**Post date:** [August 24, 2021, 12:21pm UTC](https://community.postman.com/t/documentation-and-environment-variables/9370/5 "2021-08-24T12:21:09Z")

</div>

Hi, this is not working for me in postam version 8.10.0 , the latest as of date.  
I have tried setting it as a Collection variable and also a environment variable , both are not populating the values in the documentation section, it is blank.

```auto
vs fetch-token -a https://{{vs}}:{{vsPort}}/vs/v1/token -t {{token}}

```

The above values are present in environment file in the dropdown, but not getting populated in the documentation
