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
          • Blocks reference
            • Data blocks overview
            • String
            • Bool
            • Number
            • Null
            • Select
            • Now
            • Date
            • Date and time
            • List
            • Record
            • Create variable
            • Get variable
            • Template
            • Get configuration
        • Deployed flows overview
        • Connector blocks overview
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
  • Output
  • Setup
  • Example
  • Related blocks
  • Related pages
Postman FlowsFlows referenceBlocksData

The Get Variable block

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

The Create Variable block

Next

The Template block

Built with

The Get Variable block retrieves the value of any variable defined by a Create Variable block anywhere in the flow. The Get Variable block then sends that value from its output port.

Output

Select a variable - When a variable is selected, this port sends the variable’s value.

Setup

You can add a Get Variable block directly to the canvas, or insert it inline within any block that takes variables as input. See Related blocks.

Select Select a variable and choose a variable from the dropdown list. The list is populated with variables created by Create Variable blocks in the flow.

A pin icon appears in any Get Variable block that you insert inline into a block that’s within a loop. To learn how variable pinning works, see Loops with external data.

Example

To see the Get Variable block in an example flow, check out Flow Snippets: Variables.

Related blocks

Any value that the Get Variable block can retrieve must first be defined by a Create Variable block somewhere in the canvas.

Numerous blocks allow you to insert the Get Variable block inline, including the Create with AI, Evaluate, If, List, Record, and Template blocks.

Related pages

For tutorials that use the Get Variable block, see the following:

  • Automate repetitive tasks using Postman Flows
  • Calculate the years since a milestone