Skip to content

Variables

Write {{name}} in a URL, query parameter, header, path variable, body or auth field, and Codestamp fills in the value when it sends the request. Codestamp rejects a name it does not know and shows a clear message.

Scope Set from
Globals The Environments page
Collection The Variables button in the collection header
Environment The Environments page, one environment active at a time

When names collide, the order of priority is Globals, then collection variables, then the active environment, and the environment wins. The panel marks a collection variable that the active environment replaces, for example “Replaced by DEV”.

A data file in Run all and a Pass on value in Orchestration override these during a run. See Collections.

  • Typing {{ opens completion in the URL and in parameter and header values.
  • A line under the URL, “Resolves to”, shows the value Codestamp will send. Secrets show as ••••••.
  • A defined reference is magenta. An undefined one is red with a wavy underline.
  • Ctrl+S saves the variable editor.

A variable of type Secret is encrypted with ChaCha20-Poly1305 in the local SQLite database, and its key lives in your system’s credential store: Windows Credential Manager, macOS Keychain or the Linux Secret Service. The interface never receives a secret except when you press Show value.

History keeps {{token}} instead of the value, exports leave secrets empty, and Copy as code reads them from environment variables.

Variable Value
{{$guid}} and {{$randomUUID}} A new UUID
{{$timestamp}} A new value for each reference
{{$isoTimestamp}} A new value for each reference
{{$randomInt}} A whole number from 0 to 1000
{{$randomBoolean}} true or false
{{$randomAlphaNumeric}} A new value for each reference

Codestamp makes a new value for each reference when it sends, from the operating system’s secure random source. Completion for {{$ explains each one. Dynamic variables also work in WebSocket messages and in pm.variables.replaceIn(). Codestamp rejects an unknown one, such as {{$randomFirstName}}, and shows a message.

The Environments page has a Belongs to choice: This device only, or one collection. An environment that belongs to a shared collection travels with it on Sync now, with names and variables but never secret values. See Teams. Values that only part of a team may read use the Restricted type, which is explained there too.