How to Configure Proxy Settings in Postman for API Testing

How to Configure Proxy Settings in Postman for API Testing

Postman is the most popular API testing and development tool, used by millions of developers to send requests, test endpoints, and debug APIs. Configuring a proxy in Postman allows you to route API requests through a specific IP address, capture traffic for inspection, or test how APIs respond from different geographic locations.

This guide covers how to configure both outgoing proxies (for routing your requests) and Postman’s built-in proxy server (for capturing traffic from other devices), along with SSL certificate handling and authentication.

Why Use a Proxy with Postman

There are several practical reasons to configure proxy settings in Postman:

  • API testing from different regions — Test geo-restricted APIs by routing requests through proxies in specific countries
  • Network debugging — Route Postman traffic through a debugging proxy like Charles or Fiddler to inspect requests and responses
  • IP rotation — Avoid rate limiting when testing APIs extensively
  • Corporate network access — Many corporate networks require a proxy for outbound internet access
  • Security testing — Intercept and modify API requests for penetration testing
  • Privacy — Hide your development machine’s IP from external APIs

Method 1: Configure an Outgoing Proxy in Postman

This routes Postman’s API requests through your proxy server.

Step 1: Open Proxy Settings

  1. Open Postman.
  2. Click the gear icon (Settings) in the top-right corner, or go to File > Settings (Windows/Linux) or Postman > Settings (macOS).
  3. Click the Proxy tab.

Step 2: Configure the Proxy

  1. Under Proxy configurations for sending requests, toggle Use the system proxy off (if you want to use a custom proxy instead of the system proxy).
  2. Toggle Use custom proxy configuration to On.
  3. Select the proxy type:
  • HTTP — For standard HTTP proxies
  • HTTPS — For encrypted proxy connections
  1. Enter the proxy details:
  • Proxy Server: proxy.example.com
  • Port: 8080
  1. If the proxy requires authentication:
  • Toggle Proxy Auth to On
  • Enter your Username and Password

Step 3: Configure Proxy Bypass

In the No Proxy field, enter hosts that should bypass the proxy:

localhost, 127.0.0.1, *.local, 192.168.*

Separate entries with commas.

Step 4: Test the Configuration

  1. Create a new request in Postman.
  2. Set the URL to https://api.ipify.org?format=json.
  3. Click Send.
  4. The response should show the proxy server’s IP address, confirming the proxy is active.

Method 2: Use the System Proxy

Postman can use your operating system’s proxy settings:

  1. Go to Settings > Proxy.
  2. Toggle Use the system proxy to On.
  3. Postman will automatically use whatever proxy is configured at the OS level.

This is the simplest approach if you already have a system proxy configured.

Method 3: Set Up Postman’s Built-In Proxy Server

Postman has a built-in proxy that can capture HTTP/HTTPS traffic from other devices and applications. This is useful for capturing mobile app API calls.

Step 1: Enable the Proxy Server

  1. In Postman, click the Capture icon in the bottom toolbar (or go to the footer bar and click “Capture requests”).
  2. Select Via Proxy.
  3. Configure:
  • Port: Default is 5555 (you can change this)
  • Target: Choose to save captured requests to a collection or the History

Step 2: Configure Your Device to Use Postman’s Proxy

On the device whose traffic you want to capture:

  1. Set the proxy to your computer’s local IP address.
  2. Set the port to 5555 (or whatever you configured).
  3. For example, on an iPhone: Settings > Wi-Fi > (your network) > Configure Proxy > Manual > Server: 192.168.1.100, Port: 5555.

Step 3: Capture HTTPS Traffic

To capture HTTPS traffic, you need to install Postman’s SSL certificate on the device:

  1. In the Capture window, click Download Certificate.
  2. Transfer the certificate to your device.
  3. Install and trust the certificate.
  4. HTTPS requests will now be captured and decrypted.

Step 4: View Captured Requests

Captured requests appear in your specified collection or History. You can inspect headers, bodies, and response data.

Configuring Proxy for Specific Request Types

Environment-Based Proxy Configuration

Use Postman environments to manage proxy settings for different projects:

  1. Create a new Environment (e.g., “Production via Proxy”).
  2. Add variables:
  • proxy_host: proxy.example.com
  • proxy_port: 8080
  • proxy_user: username
  • proxy_pass: password

While Postman’s built-in proxy settings do not directly support environment variables, you can use these variables in pre-request scripts.

Pre-Request Script Proxy Handling

Use pre-request scripts to add proxy-related headers or modify requests:

// Add custom headers that your proxy might require
pm.request.headers.add({
    key: "Proxy-Authorization",
    value: "Basic " + btoa(pm.environment.get("proxy_user") + ":" + pm.environment.get("proxy_pass"))
});

Collection-Level Proxy Settings

When sharing collections with teams, document proxy requirements:

  1. Open the collection.
  2. Click Edit and go to the Documentation tab.
  3. Document the proxy configuration needed for the collection.

Using Postman with Debugging Proxies

Charles Proxy Integration

  1. Start Charles Proxy on your computer (default port: 8888).
  2. In Postman, set the custom proxy to 127.0.0.1:8888.
  3. Install Charles’ SSL certificate if you need to inspect HTTPS traffic.
  4. Send requests from Postman — they appear in Charles for inspection.

Fiddler Integration

  1. Start Fiddler (default port: 8866).
  2. In Postman, set the custom proxy to 127.0.0.1:8866.
  3. Configure Fiddler’s HTTPS decryption if needed.
  4. Monitor Postman traffic in Fiddler.

mitmproxy Integration

  1. Start mitmproxy: mitmproxy --listen-port 8080
  2. In Postman, set the custom proxy to 127.0.0.1:8080.
  3. Install the mitmproxy certificate in your system’s trusted certificates.
  4. Inspect traffic in the mitmproxy console.

Handling SSL Certificates with Proxies

When routing HTTPS traffic through a proxy, certificate issues are common.

Disable SSL Verification (Development Only)

  1. Go to Settings > General.
  2. Toggle SSL certificate verification to Off.

Warning: Only disable SSL verification in development environments. Never disable it when testing production APIs or handling sensitive data.

Add Custom CA Certificates

For corporate proxies that perform SSL interception:

  1. Go to Settings > Certificates.
  2. Toggle CA Certificates to On.
  3. Click Select File and choose your corporate CA certificate (PEM format).
  4. Postman will trust certificates signed by this CA.

Client Certificates

If your proxy requires client certificate authentication:

  1. Go to Settings > Certificates.
  2. Under Client Certificates, click Add Certificate.
  3. Enter:
  • Host: The domain or IP
  • CRT file: Your client certificate
  • KEY file: Your private key
  • Passphrase: If the key is encrypted
  1. Click Add.

API Testing Scenarios with Proxies

Testing Geo-Restricted APIs

Some APIs return different data based on the requester’s location:

  1. Configure a proxy in the target country using a mobile proxy.
  2. Send the same API request through different regional proxies.
  3. Compare responses to verify geo-dependent behavior.

Load Testing with IP Rotation

When load testing APIs, rotating proxies prevent your IP from being rate-limited:

  1. Configure multiple proxy profiles in Postman environments.
  2. Switch between environments to use different proxies.
  3. For automated load testing, use Postman’s Collection Runner with different proxy configurations.

Monitoring API Changes

Set up recurring API tests through a proxy to monitor external APIs for data collection:

  1. Create a Postman Monitor.
  2. Configure the proxy settings.
  3. Schedule the monitor to run at intervals.
  4. Review results for unexpected changes.

Troubleshooting Postman Proxy Issues

“Could not get any response” Error

  1. Verify the proxy address and port are correct.
  2. Test the proxy with curl: curl -x http://proxy:8080 https://api.ipify.org
  3. Check that the proxy server is running and accessible.
  4. Ensure your firewall allows Postman to make outbound connections.

SSL Certificate Errors

  1. If using a debugging proxy, install its CA certificate (see SSL section above).
  2. For testing, temporarily disable SSL verification in Postman settings.
  3. Ensure your proxy supports HTTPS CONNECT tunneling.

Authentication Failures

  1. Verify username and password.
  2. Check if the proxy uses Basic or NTLM authentication — Postman supports Basic.
  3. Try the proxy without authentication to isolate the issue.
  4. Some proxies use IP-based authentication — ensure your IP is whitelisted.

Proxy Works in Browser but Not Postman

  1. Postman uses its own network stack, not the browser’s.
  2. Ensure the custom proxy is configured in Postman’s settings, not just the system proxy.
  3. Check if the proxy requires specific headers that the browser adds automatically.

Slow API Responses Through Proxy

  1. The proxy adds network latency to every request.
  2. For performance testing, note the proxy overhead and account for it in results.
  3. Use a proxy geographically close to either you or the API server.

For a reference on proxy terminology used in this guide, visit our proxy glossary.

Best Practices

  1. Use environment variables to manage proxy configurations across different testing scenarios.
  2. Document proxy requirements in your collection description for team collaboration.
  3. Keep SSL verification on in production testing — only disable for local debugging.
  4. Use Postman’s built-in proxy for capturing mobile app traffic instead of complex network configurations.
  5. Test without a proxy first to establish baseline response times and behavior before adding proxy-routed tests.

Conclusion

Postman provides flexible proxy support for both routing outbound requests and capturing incoming traffic. The custom proxy configuration is ideal for API testing from different regions, corporate network access, and debugging. Postman’s built-in proxy server adds powerful traffic capture capabilities for mobile app development. Whether you are testing geo-dependent APIs, debugging through Charles Proxy, or working behind a corporate firewall, Postman’s proxy features adapt to your workflow.


Related Reading

last updated: April 3, 2026

Scroll to Top

Resources

Proxy Signals Podcast
Operator-level insights on mobile proxies and access infrastructure.

Multi-Account Proxies: Setup, Types, Tools & Mistakes (2026)