An environment is a JSON object containing key-value pairs of the data you want to reference. Access the environment manager through the environment dropdown menu at the top of the sidebar. From here, you can edit the base environment, create sub environments, assign colors, and more.
Environment Type |
Description |
---|---|
Base Environment | Assigned to every workspace and accessible via the environment manager. Variables here are available throughout the entire workspace. Commonly used for default values that do not vary across environments (e.g., resource names, sample data). |
Sub Environments | Typically used for environment-specific values (production, staging, development) or user-specific configurations. Activated via the environment dropdown. Sub environments can be marked as Private and won’t be synced or exported. |
Folder Environments | Defined at the folder level. |
Referencing environment variables
Environment variables can be referenced in any text input within the Insomnia application. There are two ways to do this:
- Use the autocomplete dropdown by pressing
Control+Space
- As you type, the autocomplete will display automatically