<<variable>>
Variable Scopes
Auk provides you different variables scopes, allowing you to use different scopes for different contexts.- Global Variables: can be accessed throughout Auk and has the broadest scope of all variables.
- Environment Variables: allow your variables to be scoped to an environment. Environment variables are useful when you have the same set of variables for two environments such as production and staging.
- Request Variables: are scoped to just an individual request, request variables are useful when you want to use variables in your URL path or when you want to embed a variable URL.
- Predefined Variables: are automatically generated at runtime and can be accessed globally throughout Auk using the
$symbol, such as$guidor$timestamp. - Collection Variables: are scoped to individual collection and child folders, perfect for sharing base URLs, tokens and defaults across a set of requests without leaking to other workspaces.
Types of Variables
- A regular variable: allows users to reference the variable throughout Auk, and anyone can see the value associated with the variable. In a workspace, regular environment variable-value pairs will be synced to the server, making them available to all workspace members. However, you have the option to choose whether to sync a regular variable value present in your personal workspace
- A secret variable: enables users to specify secrets and reference the values as variables. The values of secret variables in any workspace will never be synced to the server or shared with any workspace members. It is expected that in a collaborative workspace the user will populate the value of the variable at runtime. All secret variable values in Auk will be masked using asterisks (***). Secret Variables cannot be scoped to a request and can only be scoped in an environment or globally
Secret variables values will not be exported when an environment is exported.
- A predefined variable: is automatically generated at runtime and provides dynamic, context-specific data. Predefined variables are available throughout your requests and responses and are useful for incorporating system-level information or dynamic values into your API interactions without manual configuration.
All predefined variables are accessible throughout Auk and can be retrieved using the
$symbol. Below is the list of predefined variables whose values are dynamically generated during the request or collection run:
Numbers, Text, and Colors
Internet and IP addresses
Names
Addresses and Profession
Environments
Choose the environment that aligns best with your development workflow.