For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Postman
PricingEnterprise
Contact SalesSign InSign Up for Free
HomeDocs
HomeDocs
      • Overview
        • Overview
        • Install and sign in
        • Send requests
        • Add and manage certificates
        • Create and manage collections
        • Create and manage environments
        • Share your work and manage access
        • Document APIs
        • Manage Postman with AI agents
        • Feedback
Postman API Platform

Product

  • Postman Overview
  • Enterprise
  • Spec Hub
  • Flows
  • Agent Mode
  • API Catalog
  • Fern
  • Postman CLI
  • Integrations
  • Workspaces
  • Plans and pricing

API Network

  • App Security
  • Artificial Intelligence
  • Communication
  • Data Analytics
  • Database
  • Developer Productivity
  • DevOps
  • Ecommerce
  • eSignature
  • Financial Services
  • Payments
  • Travel

Resources

  • Postman Docs
  • Academy
  • Community
  • Templates
  • Intergalactic
  • Videos
  • MCP Servers

Legal and Security

  • Legal Terms Hub
  • Terms of Service
  • Postman Product Terms
  • Security
  • Website Terms of Use

Company

  • About
  • Careers and culture
  • Contact us
  • Partner program
  • Customer stories
  • Student programs
  • Press and media
Twitter iconLinkedIn iconGithub iconYouTube iconInstagram iconDiscord icon
Download Postman
Privacy Policy

© 2026 Postman, Inc.

On this page
  • Add environment variables
  • Use environment variables
ReferencePostman VS Code extension

Create and manage environments from the Postman VS Code extension

||View as Markdown|
Was this page helpful?
Previous

Create and manage collections from the Postman VS Code extension

Next

Share your work from the Postman VS Code extension

Built with

You can add a set of variables to an environment that you can use in your requests. Variables are reusable values you can use in your API requests and scripts. Environments make it easier to change variables based on your work context, such as sending requests to a test or production server. When you switch between environments, all variables in your requests and scripts use the current environment’s values.

To learn more about managing environments in Postman, see Group sets of variables in Postman using environments.

Add environment variables

To create an environment and add variables to it, do the following:

  1. Select a workspace from the workspace dropdown list in the sidebar.
  2. Click Environment icon Environments.
  3. Click Add icon.
  4. Add variables to the environment.
  5. Click Save.

You can also use the Postman: Create a new Postman Environment command from the Command Palette to create an environment.

Use environment variables

To use environment variables in a request, do the following:

  1. Click Collection icon Collections.
  2. Select a request.
  3. Select an environment from the environment selector in the top-right corner.