Capture traffic using the Postman built-in proxy

If you're using APIs to build client-side applications like mobile and desktop apps or websites, you may want to check the HTTP and HTTPS request traffic sent and received in the app. Sometimes you might discover undocumented APIs. You can capture network traffic, including requests, responses, and cookies, using the proxy that's built into Postman.

How the built-in proxy works

The Postman desktop app has a built-in proxy that can capture HTTP and HTTPS traffic. Here's how it works:

  1. The Postman desktop app listens for any calls made by a client app or device using the proxy.
  2. The Postman proxy captures the request and forwards it to the server.
  3. The server returns a response to the Postman proxy, where it can also be saved.
  4. The response is returned back to the client.

Postman capture proxy

Similar to the Interceptor extension, the Postman proxy intercepts and captures your requests. It can also capture responses and cookies.

Starting the Postman proxy begins a proxy session, which is a time-bound period of traffic capture. You can pause, restart, and stop a proxy session, then later start another one. Each session is logged in the History tab and displays the total session time, a traffic overview, and all traffic captured. You can also send requests and responses to a collection and save cookies to the Postman cookie jar.

Using the Postman proxy

In the steps below, you'll use the Postman proxy to inspect HTTP and HTTPS communication going to and from your computer and phone. To get started, make sure your computer and phone are connected to the same local wireless network.

Follow these steps if you're on macOS (Postman v10.17 or later) or Windows (Postman v10.18 or later). If you're on Linux (all Postman versions), macOS (Postman v10.16 or earlier), or Windows (Postman v10.17 or earlier), go to Capturing HTTP requests instead. To check which version of Postman you're using, select Settings Settings in the header and select Settings > About.

Step 1: Start a proxy session

You can't use the Postman proxy with the Postman web app. Make sure you've installed the Postman desktop app.

  1. Click Capture icon Start Proxy in the Postman footer.
  2. (Optional) Click the port number to change it. By default, the port is set to 5559. Make a note of the port number, as you'll use it later when configuring clients.
  3. Click Start Proxy Session.

The first time you start a proxy session, Postman installs the Postman Proxy CA certificate on your computer. If prompted, enter your computer password to install the certificate. Installing the certificate enables the Postman proxy to capture secure HTTPS traffic sent from browsers and other client apps on your computer.

Start a proxy session

Step 2: Control the proxy session

You can't have more than one proxy or Interceptor session running at the same time.

When you start the proxy session, the Postman proxy begins capturing traffic sent from your computer. After you start a proxy session, you can pause, restart, or stop it. You can also select what traffic you want to capture during the session.

To control an active proxy session, click Capture icon Proxy active in the footer to display the proxy session tab. (If the proxy session is paused, click Capture icon Start Proxy in the footer.) The proxy tab shows the total duration of the session and the size of the data captured.

With the proxy active, open a web browser and navigate to a website, or open an app that communicates with a server. Requests appear in the proxy session tab as they're captured.

From the proxy session tab, you can take the following actions:

  • Click Pause to temporarily stop capturing traffic, then click Resume when you're ready to begin capturing traffic again. When you're finished capturing traffic, click Stop to end the proxy session.

  • Click Save responses for requests to save each request's response along with the captured request.

  • Click Capture cookies if you want to capture cookies along with requests during the proxy session.

    You can also capture cookies and sync them to Postman without starting a proxy session. Learn more about syncing cookies.

  • Click Sort icon in the column headers to sort the results in ascending or descending order.

  • Click Filter icon in the column headers to limit the requests and responses that are captured while the session is active. Postman captures requests that match the selected criteria and ignores requests that don't match. You can change the filters at any time during the session:

    • Status - Limit captured requests to the selected status codes.
    • Method - Limit captured requests to the selected methods.
    • URL - Limit captured requests to URLs that match the specified criteria. You can specify text that URLs must contain and can't contain, and you can use regular expressions. Click Enter to apply the specified filters. To remove a filter, click Close icon next to the filter.
    • Type - Limit captured requests to the selected content types.

    In responses with a content-type that has images, audio, or video, the content is intercepted but not captured. The information captured is response headers, time taken, and the status code.

Control a proxy session

Step 3: View the proxy session results

While your proxy session is running, the proxy session tab shows captured traffic as you use a browser or apps on a client device. You can view the status, method, URL, type, response size, response time, and timestamp for each captured request including.

You can view and work with the proxy session results while the session is active or paused, or after you stop the session.

  • To rename the proxy session, click Proxy debug session and enter a new name.
  • Select the Requests tab to view information about incoming requests and responses, or select the Cookies tab to view information about captured cookies.
  • Use the search box to find specific requests or cookies.
  • Click a request to view more details.
  • Click a request URL to open it as a new API request in Postman.
  • To delete a request or cookie, select it and click Delete icon Delete.
  • To add a cookie to the Postman cookie jar, select it and click + Add to Cookie Jar.
View proxy session results

Step 4: Stop the proxy session

When you're finished capturing traffic, click Stop to end the proxy session. To view the proxy session again later, click History in the sidebar, then select the proxy session. You can also click History icon View Past Sessions on the proxy session tab.

The Overview tab shows summary graphs of traffic captured in the proxy session. Use the dropdown menu to group requests by method, domain, content type, or status code. The header also displays the session start time, session size, duration, and source.

To filter the list of requests, click Filter icon in the column headers. Postman displays requests that match the selected filters and hides requests that don't match.

To save captured requests to a collection, do the following:

  1. Stop the proxy session if it's still active.
  2. Select the checkbox next to the requests you want to save, or select the checkbox in the column header to select all requests.
  3. Click Save Requests.
  4. Select the collection where you want to save the requests, or click New collection to create a new collection.
  5. Choose how to organize the requests in the collection. You can select the checkboxes to group the requests in folders organized by Domain name, Endpoints, or both.
  6. Click Save.
Save captured requests to a collection

Step 5: Configure the proxy on a client device

You can use the Postman proxy to capture traffic from a client device such as a phone.

  1. Start a new proxy session. Click Capture icon Start Proxy in the Postman footer, then select Start Proxy Session.

  2. Find the local IP address of the computer running the proxy:

    • On macOS, you can find your computer's IP address in System Settings > Network. Select a network interface, and if necessary select Details > TCP/IP to view your system's IP address.
    • On Windows, select Start > Settings > Network & Internet > Wi-Fi or Ethernet, and then select your connection. Your IP address is listed under Properties.
  3. Open the wireless settings of your client device and update the configuration of the network connection to use an HTTP Proxy. For example, in iOS:

    1. Select Settings > Wi-Fi.
    2. Click Info icon next to your Wi-Fi connection.
    3. Select Configure Proxy > Manual.
    4. Set Server and Port to the local IP address and proxy port.
    5. Click Save.
  4. Open a web browser or app on the device, then view captured traffic on the proxy session tab in Postman.

To capture secure HTTPS traffic, you need to install the postman-proxy-ca.crt certificate on the client device. To learn how to install the certificate on your device, go to Capturing HTTPS traffic.

Configuring a proxy on other devices

The broader development community has published some useful tutorials for setting up a proxy server on various operating systems:

Last modified: 2025/08/15