Compose and send web API requests using the Network Console tool

Use the Network Console tool to send web API requests. For example, use the Network Console tool when you're developing and testing web APIs.

To test a URL:

  1. To open DevTools, right-click the webpage, and then select Inspect. Or, press Ctrl+Shift+I (Windows, Linux) or Command+Option+I (macOS). DevTools opens.

  2. In DevTools, on the main toolbar or the Drawer toolbar at the bottom, select the Network Console tab. If that tab isn't visible, click the More tabs (More tabs icon.) button, or else the More Tools (More Tools icon.) button.

    The Network Console tool opens:

    The Network Console tool.

  3. In the main pane of the Network Console tool, click Create a request.

  4. In the Untitled Request text box, enter a URL to test.

  5. In the GET dropdown list, select a REST method: GET, HEAD, POST, PUT, or PATCH.

  6. Optionally, in the Query section, click the Key and Value text boxes and enter key/value pairs:

    Entering key/value pairs to construct a URL in the Network Console tool.

    The Computed URL is updated as you enter key/value pairs.

  7. Click the Send button.

Starting from the Network tool

To use the Network Console starting from the Network tool:

  1. Go to a webpage to test.

  2. To open DevTools, right-click the webpage, and then select Inspect. Or, press Ctrl+Shift+I (Windows, Linux) or Command+Option+I (macOS). DevTools opens.

  3. In DevTools, on the main toolbar, select the Network tab. If that tab isn't visible, click the More tabs (More tabs icon.) button, or else the More Tools (More Tools icon.) button.

  4. Refresh the webpage.

    The Network tool displays the resources that are used to construct the webpage.

  5. Right-click the network request that you want to change and resend, and then select Edit and Resend:

    Right-clicking a resource for the webpage to select 'Edit and resend' in the Network tool.

    The resource opens in the Network Console tool in the Drawer at the bottom of DevTools.

  6. In the Network Console, edit the network request information, and then click the Send button:

    Editing the network request and then clicking Send, in the Network Console tool.

Save and export Collections, Environments, and environment variables

You can:

  • Save and export Collections.
  • Save and export Environments.
  • Edit and export sets of environment variables.

Entering a name for the new environment:

Entering a name for the new environment.

Selecting the format for the new environment:

Selecting the format for the new environment.

The Network Console tool is compatible with the Postman v2.1 and OpenAPI v2 schemas.

See also: