A template tag is a type of variable that you can use to reference or transform values. You can reuse an element from a request or a response, get the current timestamp, encode a value, or prompt the user for an input value.
You can create a template tag in the request URL, query parameters, body, or authentication by pressing Control+Space
and selecting a tag. Once the tag has been added, you can click it to configure it if needed.
Available template tag functions include:
- External Vault to reference secrets from an external vault
- Faker to generate random data
- Base64 to encode and decode values
- Timestamp to get the current date and time in a specific format
- UUID to generate a UUID in version 1 or version 4
- OS to get various details about the current Operating System
- Hash to apply a hash with a specific algorithm and encoding to a value
- File to read contents from a file
- JSONPath to pull data from a JSON string using JSONPath
- Cookie to reference a cookie value from the cookie jar
- Prompt to prompt a user for input
- Response to reference a value from another request’s response
- Request to reference a value from the current request