# \#ref

**URL:** https://community.postman.com/tag/ref/166.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Reference Schema from Other API](https://community.postman.com/t/reference-schema-from-other-api/26485)

<div class="topic-metadata">

**Author:** [@austin-poor](https://community.postman.com/u/austin-poor)\
**Replies:** 3\
**Last updated:** [August 21, 2022, 5:17am UTC](https://community.postman.com/t/reference-schema-from-other-api/26485 "2022-08-21T05:17:31Z")

</div>

How can I use $ref to import schemas from either external YAML files or from another API I’ve documented in Postman? I want to use $ref to reference schemas defined in another Postman API without needing to publish the …

---

## [How to use $ref to take information from environment](https://community.postman.com/t/how-to-use-ref-to-take-information-from-environment/1365)

<div class="topic-metadata">

**Author:** [@alzarka](https://community.postman.com/u/alzarka)\
**Replies:** 1\
**Last updated:** [April 6, 2018, 9:24am UTC](https://community.postman.com/t/how-to-use-ref-to-take-information-from-environment/1365 "2018-04-06T09:24:33Z")

</div>

I’m making schema tests. And I want to store all schema’s that I will need to reuse into environment and then take them by using $ref. Is this possible? And can I have an example on how to do it?
