Skip to content

Variables & History

The API Explorer includes environment variables for reusable values, JSON path helpers to extract response data, and a history panel to review past requests.

Variables let you store and reuse values across requests:

/device/devices/{{deviceId}}

Instead of hardcoding IDs, use variables that can be changed in one place.

Use double curly braces:

{{variableName}}

Variables work in:

  • Endpoint paths
  • Query parameter values
  • Request body
  • Header values

Access variables in the right sidebar under the Variables tab:

  • Add Variable — Click Add and enter key/value pair
  • Edit Variable — Click the variable value to edit inline
  • Delete Variable — Click the × button to remove
  • Copy Syntax — Click the copy icon to copy {{variableName}} syntax

Each variable has:

PropertyDescription
KeyVariable identifier (no spaces allowed)
ValueThe substituted value

Common variables to create:

VariableExample ValueUse Case
deviceId12345Target device for operations
collectorId1Collector reference
groupId42Device group operations
datasourceId78Module operations
startTime1704067200Time range start (epoch)
endTime1704153600Time range end (epoch)

When you send a request:

  1. Variables are identified by {{name}} pattern

  2. Values are substituted from your variable list

  3. The final request uses resolved values

  4. Original template is preserved for editing


The Helpers tab provides a quick way to save response values as variables.

After running a request, the Helpers tab shows top-level scalar fields from the response:

FieldDescription
JSON PathThe path to the value (e.g., $.id, $.displayName)
CopyCopy the JSON path to clipboard
SaveSave the value as an environment variable
  1. Run an API request that returns a single resource

  2. Open the Helpers tab in the sidebar

  3. Find the field you want to save (e.g., $.id)

  4. Click Save to create a variable with that value

  5. Use the variable in subsequent requests: {{id}}


History sidebar showing past API requests

Every API request is saved to history:

  • Request method and endpoint
  • Request body (if applicable)
  • Response status
  • Timestamp
  • Duration

Open the History tab in the right sidebar to see past requests. The header shows “Last N responses” where N is your configured limit.


Each entry shows:

FieldDescription
Method Badge GET , POST , etc.
EndpointThe API path called
StatusResponse status code with color indicator
DurationHow long it took (e.g., “234ms”)

Entries have a colored left border: green for success (2xx), red for errors.


Click a history entry to access actions:

ActionResult
Open in New TabOpens the request in a new API tab with the saved response
Copy PathCopies the endpoint path
  1. Find the request in history

  2. Click the open button (route icon)

  3. Request opens in a new tab with the saved response

  4. Modify parameters if needed

  5. Send again


History is stored per-portal with configurable limits:

SettingLocationDefault
History LimitSettings → API History Limit10 requests

Configure in Settings (Ctrl+, / Cmd+,).

  1. Click Clear at the top of the history panel
  2. All history entries for the current portal are removed

The Response Viewer’s Snippets tab generates code for the current request in multiple languages:

LanguageUse Case
cURLCommand-line testing, shell scripts
PythonAutomation scripts with requests library
PowerShellWindows automation with Invoke-RestMethod
GroovyLogicMonitor script integration

Snippets include:

  • Full URL with resolved variables
  • Headers (including X-version and Content-Type)
  • Request body (for POST/PUT/PATCH)

Workflow for creating a resource and using its ID:

  1. Create a device: POST /device/devices

  2. View the response and note the id field

  3. Open Helpers tab and click Save next to $.id

  4. Variable id is now available

  5. Use in subsequent requests: /device/devices/{{id}}


  • Variable Naming — Use clear names like targetDeviceId instead of id1. Prefix by purpose: test_deviceId, prod_deviceId.
  • Organizing Variables — Keep your variable list clean by removing unused ones. Use descriptive names that indicate the value’s purpose.
  • History Management — Use history to quickly repeat recent requests. Open in new tab to compare before/after results.
  • Security — Variables are stored locally in your browser. Don’t store sensitive credentials. Clear when switching computers.