The Postman VS Code extension enables you to create and send HTTP and multi-protocol requests, or your request history. Use the Postman Console in the VS Code extension to debug and troubleshoot issues with your requests. It also supports creating code snippets from your API requests for various languages, such as Node.js or cURL. You can also use cookies with the VS Code extension.
Requests sent in the Postman VS Code extension appear in your workspace's request history in both the VS Code extension and the Postman app.
To create and send an HTTP request, do the following:
Select a workspace from the workspace dropdown list in the sidebar.
Click in the request dropdown list in the sidebar, then select HTTP to use Postman's REST client.
If you selected HTTP from the request dropdown list, you can create another HTTP request by clicking New HTTP Request in the sidebar.
Enter your request's details.
Click Send.
To learn more about creating and sending HTTP requests in Postman, see Send API requests and get response data in Postman.
You can also use the
Postman: Create a new HTTP Request
command from the Command Palette to create a request.
When you create a request, click in the request dropdown list. Then, select WebSocket or gRPC to create a WebSocket or gRPC client.
To create a WebSocket request, do the following:
ws://
or wss://
.To learn more about creating and sending WebSocket requests in Postman, see Create a WebSocket Request.
To create a gRPC request, do the following:
To learn more about creating and sending gRPC requests in Postman, see Invoke a gRPC request in Postman.
You can send requests that were sent with the Postman VS Code extension or the Postman app.
You can use the Postman Console to troubleshoot your requests. You can also use the Console to debug pre-request scripts and tests scripts, logging output to the Console. To open the Postman Console, click Open Postman console at the top of the sidebar.
You can convert an API request into a code snippet in the language of your choice. Available languages and frameworks include cURL, Node.js, Python, and more.
To generate a code snippet, open an HTTP request, then click Code (below Send). Select a language or framework from the dropdown list, then copy the code snippet to your clipboard.
You can view and edit cookies associated with different domains. You can then use the cookies stored in the cookie jar when sending HTTP requests in Postman.
To manage cookies in the Postman VS Code extension, open an HTTP request, then select Cookies (below Send).
You can also open the cookie editor with the
Postman: Open cookies editor
command in the Command Palette.
To learn more about using cookies in Postman, see Create and capture cookies using Postman's cookie manager.
Last modified: 2025/08/22