Send API requests from the Postman VS Code extension

You can use the Postman VS Code extension to create and send HTTP, raw WebSocket, and gRPC requests.

Requests sent in the VS Code extension appear in your workspace's request history in both the VS Code extension and the Postman app.

Send HTTP API requests

To create and send an HTTP request, do the following:

  1. Select a workspace from the workspace dropdown menu in the sidebar.

    You can also create a new workspace from the VS Code extension.

  2. Click the request dropdown menu in the sidebar, then select HTTP to use Postman's REST client.

    If you selected HTTP from the request dropdown menu, you can create another HTTP request by clicking New HTTP Request in the sidebar.

  3. Specify the details you need for your request.

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

Send multi-protocol API requests

To create and send a raw WebSocket or gRPC requests, do the following:

  1. When you create a request, click the request dropdown menu first, and select WebSocket or gRPC instead of HTTP.

  2. For Postman's WebSocket client:

    1. Enter the WebSocket server URL. A WebSocket URL begins with ws:// or wss://.
    2. Click Connect.
    3. To disconnect your WebSocket request's connection, click Disconnect.
  3. For Postman's gRPC client:

    1. Enter a URL into Server URL.
    2. Click the Method selection dropdown to select the method you want to invoke.
    3. Configure a service definition.
    4. Click Invoke.

To learn more about creating and sending WebSocket requests in Postman, see Create a WebSocket Request. To learn more about creating and sending gRPC requests in Postman, see Invoke a gRPC request in Postman.

Send API requests from your history

You can send requests that were sent with the VS Code extension or the Postman app.

  1. Select a workspace from the workspace dropdown menu in the sidebar.
  2. Click History icon History.
  3. Select a request from your history, and edit the request if you'd like.
  4. Send the request.

Troubleshoot with the Postman Console

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 Console icon Open Postman console at the top of the sidebar.

Generate code snippets

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.

Add and manage CA and client certificates

You can add a custom CA certificate to connect to an API that uses a certificate registered with an internal certificate registry, without needing to turn off SSL verification in your request. You can also add a client certificate to connect to an API that uses Mutual TLS (mTLS) authentication. Certificates added to Postman are stored locally and aren't synced to the Postman cloud.

To access certificates, do the following:

  1. Click Options icon Views and More Actions at the top of the sidebar.
  2. Select Settings > Certificates.

To learn about adding and managing certificates in Postman, see Add and manage CA and client certificates in Postman.

Use cookies

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 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/07/25