# Laika Environments

### Creating a new Environment and defining a Variable

Click on the **\[ Environment ]** Icon.

![](https://4276181174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBAYSQIWd7IsbIjaYskIf%2Fuploads%2FM6X1wSO16WKQafCkKQg2%2FScreen%20Shot%202565-04-24%20at%2014.43.34.png?alt=media\&token=d0b31eed-3b3b-41b8-b725-473ff723ed07)

Click on **\[ New ]** to create a new Environment space

![](https://4276181174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBAYSQIWd7IsbIjaYskIf%2Fuploads%2FL1S8Ub1F6sKnug4cIwM9%2FScreen%20Shot%202565-04-25%20at%2022.42.00.png?alt=media\&token=92e8d4df-8ba5-441e-a1de-3dbcbc852844)

Name the Environment then add a new variable in that Environment by clicking on the **\[ + ]** button. When naming environment variables. your variables have to satisfy this rules.

* Start with alphabets (a-z,A-Z) or underscore (\_)&#x20;
* Consist of alphabets (a-z,A-Z), underscore (\_)  or Numbers (0-9)

`Notes: Two Variables in the same Environment cannot have the same name.`

then hit the **\[ Create ]** button.

![](https://4276181174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBAYSQIWd7IsbIjaYskIf%2Fuploads%2Fpq4bi6FuYPWB4yBB4FNc%2FScreen%20Shot%202565-04-25%20at%2022.50.16.png?alt=media\&token=f5700f71-c8ac-402d-8bc9-350cd675629b)

And that's it!

### Using variables from environments

Select the environment that you want to use by selecting the Environment dropdown on the top right of the UI.

![](https://4276181174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBAYSQIWd7IsbIjaYskIf%2Fuploads%2FXn45nNmv3gYpADXcwAaQ%2FScreen%20Shot%202565-04-25%20at%2022.57.24.png?alt=media\&token=255d209e-be53-4c38-bcb4-a36151402612)

Then, pick an environment of your choice.

![](https://4276181174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBAYSQIWd7IsbIjaYskIf%2Fuploads%2FZha28FIXUafY3ZGm3RQW%2FScreen%20Shot%202565-04-25%20at%2023.01.41.png?alt=media\&token=b546b805-3685-4710-92dd-d8a58954a560)

In the request that you want to use variables from Environment. Put the name of variables in the form of {{ variable\_name }}

`Tip: The Input form to use environment variables will have a suggestions dropdown so you can easily identify and use them.`

![](https://4276181174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBAYSQIWd7IsbIjaYskIf%2Fuploads%2FjFwTrwoJXThaAjTy8n83%2FScreen%20Shot%202565-04-25%20at%2023.06.20.png?alt=media\&token=5e6cda83-cb4a-4f2e-a040-133f20802316)
