--- id: workspace-variables title: Workspace Variables --- Workspace Variables are the variables with some value(usually tokens/secret keys/API keys) that can be used in different apps across the same Workspace. :::note Server variables will not resolve if you use bracket notation. This is because bracket notation is not supported on the server-side, where server variables are resolved. If you use bracket notation in a query that is executed on the server, the query will fail. To avoid this, use dot notation to resolve workspace variables in queries. ::: ## How can we add these variables to an Workspace? Suppose there is an `API key` or a value that you want to use in the queries or widgets in the multiple apps of the same Workspace then the Workspace admin or the user with permissions can add an environment variable. #### Adding the environment variable - Go to the ToolJet Dashboard, and click on the dropdown on the navigation bar to show `Workspace` options - Select `Manage Environment Variables` - Click on `Add New Variable` button - Give a `Name` to the variable, set the value, choose `Type`, toggle `Encryption`, and click **Add Variable** button - Now this variable can be used inside any application of this Workspace