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
  • Input
  • Setup
  • Example
  • Related blocks
  • Related pages
Postman FlowsFlows referenceBlocksData

The Create Variable block

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

The Record block

Next

The Get Variable block

Built with

The Create Variable block creates a variable and assigns it a name and a value. The variable can then be referenced by one or more Get Variable blocks from anywhere in the flow. The variable’s value comes from the block that’s connected to the Create Variable block’s input port. For example, you could connect a String block’s output port to the Create Variable block’s input port. Whatever text you enter in the String block will be assigned to the variable named in the Create Variable block. Or you could connect an HTTP Request block to a Create Variable block to assign the request’s entire response to the variable.

Create Variable blocks are colored by default. Any Get Variable blocks that reference the variable also has the same color. When you click a Create Variable block that’s referenced by a Get Variable block, a dotted line appears between them. The dotted line is the same color as the blocks. This can be useful when you’re locating variables in your flow.

Input

Variable (number) - Accepts any data sent from a single connected block, including:

  • Text
  • A number
  • A JSON object
  • A boolean value
  • A list
  • An image

Setup

Click the variable’s name in the block to edit it. To change the block’s color, click the block, then click Style icon Change Color and select a new color. Any Get Variable blocks that reference the variable will update their name or color automatically.

Example

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

Related blocks

  • Get Variable

Related pages

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

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