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
        • Write pre-request scripts
        • Write tests
        • Script examples
        • Dynamic variables
          • Overview
          • pm variables methods
          • pm.vault
          • pm.cookies
          • pm.request
          • pm.response
          • pm.sendrequest
          • pm.visualizer
          • pm.test and pm.expect
          • pm.require
          • pm.execution
          • pm.message
          • pm.info
          • pm.mock
          • pm.datasets
          • pm.state
        • Troubleshoot test errors
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
  • pm.info properties
Tests and scriptsWrite scriptsPostman sandbox reference

Reference request metadata in scripts

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

Reference message data in scripts

Next

Reference requests and examples in local mock servers

Built with

The pm.info object provides meta information related to the request and the script itself.

pm.info properties

The pm.info object contains the following properties:

  • pm.info.eventName:String - For HTTP requests, this is either prerequest or test, depending on where the script is executing within the request. For gRPC, it’s either beforeInvoke, onIncomingMessage, or afterResponse, depending whether script is running a Before invoke, On message, or After response hook, respectively.

  • pm.info.iteration:Number - The value of the current iteration.

  • pm.info.iterationCount:Number - The total number of iterations that are scheduled to run.

  • pm.info.requestName:String - The saved name of the request running.

  • pm.info.requestId:String - A unique GUID that identifies the running request.