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
    • Help
      • Overview
        • How to dynamically set the initial value for a variable
        • How to persist variable values
        • How to dynamically update multiple requests
        • How to add a proxy to the operating system
        • I'm experiencing a long response time
        • How to install Newman
        • How to use cookies in scripts
        • How to save a response as a variable and reuse it for another API call
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.

FAQsSending requests

How to save a response as a variable and reuse it for another API call

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

How to use cookies in scripts

Next

My Postbot limit didn’t get updated

Built with

You can achieve this using Postman’s JavaScript APIs in your request scripts.

The pm object provides most of the functionality for testing your request and response data, the response data is accessible in the Tests tab of the request, as the scripts will be executed once a response has been received.

You can use the pm.response object to access the data returned in the response for the current request.

See a real-life example exploring this collection.


Have more questions? Submit a request