Test APIs using the Postman VS Code extension

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 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.

Last modified: 2025/07/25