Add an environment variable
1
Open Env Variables
In QA Studio, go to Account > Settings, then open the Env Variables section.
2
Add a variable
Click Add Env Variable.
3
Enter the key and value
Enter a Key and Value.For example, use
api-token as the key and paste the matching token as the value.4
Hide sensitive values
For confidential values, enable Secure Entry: Omit Value from Interfaces and Logs.This keeps the value hidden from interfaces and logs.
Use an environment variable in test prompts
Reference environment variables with{{env.<key>}}.
For example, if your key is api-token, reference it like this:
Use an environment variable in a cURL command
You can reference stored environment variables in cURL pre-requests. This is useful when a setup request needs a secret token. For example, you can run aDELETE request before a test starts to clean a user’s order history:

