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
          • Overview
          • Rename headers
          • Detect session cookie
          • Route response data
        • 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
  • TypeScript compared to FQL
  • Restrictions and notes
  • Use TypeScript in a Postman Flows decision block
  • Examples
Postman FlowsFlows referenceTypeScript in flows

Use TypeScript in Postman Flows

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

The Get Configuration block

Next

Rename headers with TypeScript in Flows

Built with

You can use TypeScript to enhance logic and functionality in the logic blocks of your Postman Flows. For example, with TypeScript you can write expressions that evaluate data informing your Flow’s decisions, and functions that process data within your Flow.

TypeScript in an Evaluate block

TypeScript compared to FQL

The If, Condition, and Evaluate logic blocks in Postman Flows support both TypeScript and Flows Query Language (FQL). While FQL is designed for querying and transforming data, TypeScript offers the robustness and flexibility of a full programming language within your Postman Flows. This makes TypeScript more suitable for complex logic and large-scale projects. Also, if you’re familiar with both, you may prefer using TypeScript over FQL.

Restrictions and notes

Scripts written with TypeScript in Postman Flows have the following restrictions:

  • Scripts can’t import or require libraries.
  • Scripts don’t have file system access.
  • Scripts can’t make API calls (for example, fetch isn’t available).
  • The top level code must be an expression.

TypeScript in Postman Flows provides a range of cryptographic capabilities, including the Web Crypto API, SHA-256 hashing, AES encryption, and secure random number generation.

You can use TypeScript to send console logs to the Postman Console using the following methods:

  • console.log
  • console.error
  • console.warn
  • console.info

Use TypeScript in a Postman Flows decision block

To use TypeScript in an Evaluate or If block, select TypeScript from the dropdown list and enter your code in the block.

Select TypeScript

Examples

To learn more, see the following TypeScript examples:

  • Rename headers with TypeScript in Flows
  • Detect a session id cookie with TypeScript in Flows
  • Route response data with TypeScript in Flows