Built-in variables
Built-in variables start with $ and get a fresh value each time a request is sent. Use them anywhere a
{{variable}} can go. Reqjet supports both VS Code REST Client’s names and JetBrains’ $random names, so files from
either tool work as they are.
Identifiers and random values
Section titled “Identifiers and random values”| Variable | Value |
|---|---|
{{$guid}}, {{$uuid}}, {{$random.uuid}} |
A new GUID, such as 3f2b8c1e-…. |
{{$randomInt min max}} |
A whole number from min up to, but not including, max. Without them, 0 to 999. |
{{$random.integer(from, to)}} |
A whole number from from up to, but not including, to. |
{{$random.float(from, to)}} |
A decimal number between from and to. |
{{$random.alphabetic(n)}} |
n random letters (default 10). |
{{$random.alphanumeric(n)}} |
n random letters, digits and underscores (default 10). |
{{$random.hexadecimal(n)}} |
n random hex digits (default 10). |
{{$random.email}} |
A random email address, such as kqzjxtbe@mfhqwa.com. |
Dates and times
Section titled “Dates and times”| Variable | Value |
|---|---|
{{$timestamp}} |
Unix time in seconds, such as 1795000000. |
{{$isoTimestamp}} |
The current UTC time, such as 2026-11-21T15:30:00.000Z. |
{{$datetime format}} |
The current UTC time in a format. |
{{$localDatetime format}} |
The current local time in a format. |
format is iso8601, rfc1123 (Sat, 21 Nov 2026 15:30:00 GMT), or a .NET date format in quotes, such as
"yyyy-MM-dd".
$timestamp, $datetime and $localDatetime can be offset by an amount and a unit: ms, s, m (minutes), h,
d, w, M (months) or y.
X-Expires: {{$timestamp 1 h}} # an hour from nowX-Yesterday: {{$datetime "yyyy-MM-dd" -1 d}} # yesterday's dateX-Next-Month: {{$localDatetime iso8601 1 M}}From your machine
Section titled “From your machine”| Variable | Value |
|---|---|
{{$processEnv NAME}} |
The environment variable NAME from the operating system. |
{{$dotenv NAME}} |
NAME from a .env file in the .http file’s folder, or the closest parent folder with one. |
{{$shared name}} |
name from the $shared environment, even when the selected environment has its own value. |
With a %, the name itself comes from a variable: {{$processEnv %tokenVariable}} reads the operating system
variable whose name is the value of {{tokenVariable}}. That lets each environment point at a different one.
OAuth 2.0 tokens
Section titled “OAuth 2.0 tokens”| Variable | Value |
|---|---|
{{$auth.token("id")}} |
An access token from the OAuth 2.0 profile id in the environment files. Reqjet gets it when the request is sent, keeps it for the session, and refreshes it when it expires. |
{{$auth.idToken("id")}} |
The OpenID Connect ID token from the same profile. |
GET {{baseUrl}}/ordersAuthorization: Bearer {{$auth.token("my-api")}}Response values
Section titled “Response values”Values from another request’s response are written with its # @name:
| Variable | Value |
|---|---|
{{name.response.body.$.path}} |
A value from the JSON response body, by JSONPath. |
{{name.response.body.*}} |
The whole response body. |
{{name.response.headers.Header-Name}} |
A response header. |
{{name.request.body.$.path}}, {{name.request.headers.Header-Name}} |
The same, from what was sent. |
If the named request hasn’t been sent yet, Reqjet sends it first. See Chaining requests.