Skip to Content
API ClientVariables & Environments

Variables & Environments

Intend integrates a high-performance Template Engine allowing you to dynamically inject random variables into your URLs and payloads, and seamlessly drift between environments without modifying credentials.

Setting Environments

Most developers work against dual targets: Development (localhost) and Production (api.example.com).

Intend formalizes this with an integrated Environment Dropdown nested in the top application bar (DEV and PROD).

Configuring Constants

Click the Settings (⚙) target right alongside the dropdown. Here, map out your infrastructure:

  • DEV Target: Specify your local or staging baseline URL.
  • DEV Key: Securely store your staging API Key or OAuth token.
  • PROD Target: Specify your production domain.
  • PROD Key: Securely hold your production key.

When you toggle the environment dropdown midway through a session, Intend’s execution engine seamlessly swaps the injected BASE_URL, API_KEY and ACCESS_TOKEN secrets during request compilation. You do NOT have to update headers inside the Request Editor.

Template Generators

Dynamic data ensures your validation tests remain resilient. Type any {{variable}} string directly into your URL or request body. Intend processes these templates mathematically prior to dispatch.

Available built-in generators:

PatternExecution ResultExample Yield
{{uuid}}Generates a randomized UUID v4550e8400-e29b...
{{timestamp}}Generates an ISO-8601 UTC instant2026-03-02T14:30.00Z
{{randomInt}}Selects a random integer from 0-999427
{{randomEmail}}Generates a mock email aliasuser_3847@example.com
{{randomUser}}Generates a mock usernameUser42

[!TIP] Every individual generator template yields a completely fresh variation on every single execution.

Payload Example

{ "transaction_id": "{{uuid}}", "customer": { "email": "{{randomEmail}}", "name": "{{randomUser}}" }, "created_at": "{{timestamp}}" }

Intend will compile this mock data correctly without exposing the brackets to the live server.

Last updated on