# Looking for an API endpoint to Add a new Environment

**URL:** <https://matillioncommunity.discourse.group/t/looking-for-an-api-endpoint-to-add-a-new-environment/1657>\
**Category:** Matillion ETL\
**Created:** [January 25, 2022, 9:47pm UTC](https://matillioncommunity.discourse.group/t/looking-for-an-api-endpoint-to-add-a-new-environment/1657 "2022-01-25T21:47:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe.626723128786](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/joe.626723128786/32/39_2.png) [@joe.626723128786](https://matillioncommunity.discourse.group/u/joe.626723128786)\
**Post date:** [January 25, 2022, 9:47pm UTC](https://matillioncommunity.discourse.group/t/looking-for-an-api-endpoint-to-add-a-new-environment/1657/1 "2022-01-25T21:47:19Z")

</div>

looking for an API endpoint to Add a new Environment.

---

<div class="post-metadata">

**Author:** ![Bryan](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@Bryan](https://matillioncommunity.discourse.group/u/Bryan)\
**Post date:** [January 27, 2022, 8:26pm UTC](https://matillioncommunity.discourse.group/t/looking-for-an-api-endpoint-to-add-a-new-environment/1657/2 "2022-01-27T20:26:28Z")

</div>

Hi [@joe.626723128786](https://matillioncommunity.discourse.group/u/joe.626723128786)​,

The only way to create an Environment in a project using the API is through the Environment endpoint using the import method via a POST. So, you would have to build the POST body which would be environment specifics and then pass that into the import method. Check out this doc which explains the API: https://documentation.matillion.com/docs/2768621

To get a starting point of what an Environment might look like, you could export a current environment in a project and that would give you a starting place for the import. I hope this helps get you started. Thanks for posting!

---

<div class="post-metadata">

**Author:** ![joe.626723128786](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/joe.626723128786/32/39_2.png) [@joe.626723128786](https://matillioncommunity.discourse.group/u/joe.626723128786)\
**Post date:** [April 22, 2022, 5:40pm UTC](https://matillioncommunity.discourse.group/t/looking-for-an-api-endpoint-to-add-a-new-environment/1657/3 "2022-04-22T17:40:58Z")

</div>

sorry never found a way to create a new env with an api call , did I miss something obvious?

Thanks
