> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snapsec.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynamic Variable Injection

> Automatically apply environment-specific values (URLs, tokens, IDs) to requests and scans for accurate, context-aware testing.

<img style={{ borderRadius:"0.5rem" }} src="https://mintcdn.com/snapsec-23724fa2/KMyQ-GXYMPFlHVaa/images/was/features/dynamic-variables.png?fit=max&auto=format&n=KMyQ-GXYMPFlHVaa&q=85&s=3af99dc351583221e4cda8fc75d46d36" width="1919" height="918" data-path="images/was/features/dynamic-variables.png" />

## Overview

Dynamic Variable Injection ensures that every API request and scan automatically uses the correct environment-specific values.\
Whether you're testing against Dev, Test, QA, or Sandbox, variables like URLs, tokens, IDs, and custom parameters are injected in real time — eliminating inconsistencies and improving testing accuracy.

## Key Capabilities

<Columns cols={2}>
  <Card title="Automatic Environment Binding" icon="link">
    Requests instantly adapt to the selected environment, loading accurate URLs, tokens, and identifiers.
  </Card>

  <Card title="Real-Time Variable Injection" icon="bolt">
    Variables are dynamically applied the moment a scan or request is executed, ensuring correct context every time.
  </Card>

  <Card title="Supports All Variable Types" icon="tag">
    Inject base URLs, authentication tokens, IDs, timestamps, keys, and custom parameters specific to each environment.
  </Card>

  <Card title="Consistent Request Execution" icon="repeat">
    Eliminates human error by removing the need to manually replace values during testing.
  </Card>

  <Card title="Reduced Misconfigurations" icon="shield-halved">
    Prevents broken requests, unauthorized responses, or incorrect scan results caused by mismatched environment values.
  </Card>

  <Card title="Works Across Collections & Projects" icon="layer-group">
    Variable injection applies seamlessly to all requests, collections, and API projects across the platform.
  </Card>
</Columns>

## Value

Ensure every API request runs with the correct context.\
Dynamic variable injection removes manual edits, reduces misconfigurations, and enables consistent, environment-accurate testing for all API workflows.

## Next Steps

<Card title="Explore Live Demo Now" icon="arrow-right" href="https://suite.snapsec.co/demo">
  See dynamic variable injection in action across API testing environments.
</Card>
