An environment is a distinct context or container that holds a set of variables, allowing you to reference when sending requests for and configure for different scenarios where an API might be deployed eg. production, staging, local etc.
You can create environments in a team workspace on Requestly, which helps facilitate collaboration by allowing you to share variables seamlessly among team members.
Creating an environment
Create a new environment to change the context by updating the values of variables or introducing new set of variables.
To create a new environment:
-
Navigate to API Client and select environments tab in the secondary sidebar.
-
Click on Create new environment button or the + New in the header
-
Enter the new environment name and press Enter
And that’s it, your new environment is now created and you can now start adding your variables in the given table.
Switching Environments
When you create your first environment, Requestly automatically sets this environment as your active environment. When sending a request, Requestly will use the variables from the active environment.
To use values of variables from other environments, you can switch your active environment from environment switcher.
The switcher shows the current active environment. Clicking on it will show the list of enviroments available to switch.