# Can I reference an OpenAPI 3.0 Server Object URL in a Collection?

**URL:** <https://community.postman.com/t/can-i-reference-an-openapi-3-0-server-object-url-in-a-collection/48792>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [June 21, 2023, 5:44pm UTC](https://community.postman.com/t/can-i-reference-an-openapi-3-0-server-object-url-in-a-collection/48792 "2023-06-21T17:44:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielcraigie](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danielcraigie/32/16149_2.png) [@danielcraigie](https://community.postman.com/u/danielcraigie)\
**Post date:** [June 21, 2023, 5:44pm UTC](https://community.postman.com/t/can-i-reference-an-openapi-3-0-server-object-url-in-a-collection/48792/1 "2023-06-21T17:44:44Z")

</div>

_My question_:  
I’ve defined an API which includes a `servers:` element to list dev/preprod/prod endpoints.

Now I’m creating Collections of requests for the various API actions but I’m having to hard-code the base location of each URL.

Is there a way to reference the `URL` value in the API definition when defining the request location?

I imagined it would be something like: {{server.url}}/path
