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
        • Install and sign in
        • Send requests
        • Add and manage certificates
        • Create and manage collections
        • Create and manage environments
        • Share your work and manage access
        • Document APIs
          • Overview
          • Write scripts
          • Use packages in scripts
          • Run collections
        • Manage Postman with AI agents
        • Feedback
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
  • Use scripts to test your APIs
  • Import packages into scripts
  • Run collections in sequence
ReferencePostman VS Code extensionTest APIs

Test APIs using the Postman VS Code extension

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

Document your APIs from the Postman VS Code extension

Next

Test APIs using the Postman VS Code extension

Built with

With the Postman VS Code extension, you can write scripts and import packages in your pre-request and post-response scripts. You can also manually run your collections and access to your API’s test results.

Use scripts to test your APIs

Add pre-request and post-response scripts to your HTTP collections, folders, and requests to test your API’s functionality. You can also open your scripts in a separate JavaScript file in your code editor, giving you access to your code editor’s features and AI agents.

To learn more, see Test APIs using the Postman VS Code extension.

Import packages into scripts

Import internal packages from your team’s Postman Package Library into your pre-request and post-response scripts. You can also import packages from external packages registries, such and npm or JSR.

To learn more, see Reuse packages from the Postman VS Code extension.

Run collections in sequence

With the Collection Runner, you can manually run requests in a specific sequence and view the test results in the VS Code extension.

To learn more, see Use the Collection Runner from the Postman VS Code extension.