Back to Blog

Setting Up Proxies in Postman for API Testing: A Comprehensive Guide with Examples

Learn how to properly configure a proxy in Postman for API testing: global and individual settings, working with HTTP/SOCKS5, authentication, and troubleshooting common issues.

📅February 28, 2026
```html

Postman is one of the most popular tools for API testing, used by developers, QA engineers, and backend specialists worldwide. But what do you do if you need to test an API that is only accessible from a specific region, bypasses IP blocks, or requires requests to be verified from different locations? The solution is to configure a proxy server in Postman.

In this guide, you will learn how to properly set up a proxy in Postman for various scenarios: from simple traffic routing to working with geo-restricted endpoints and debugging requests through corporate proxy servers. We will cover both global and individual proxy settings, working with HTTP and SOCKS5 protocols, authentication, and troubleshooting common issues.

Why Use Proxies for API Testing

Proxy servers in the context of API testing solve several critically important tasks that cannot be accomplished using standard Postman tools. Understanding these scenarios will help you choose the right type of proxy and configure it for specific needs.

Testing geo-restricted APIs. Many modern APIs return different data depending on the geographical location of the client. For example, weather service APIs, streaming platforms, financial applications, or marketplaces. To test how your application works for users in Germany, the USA, or Japan, you need a proxy server with an IP address from the corresponding country. Without a proxy, you physically cannot reproduce the API behavior for users from other regions.

Bypassing rate limiting and IP blocks. During intensive API testing, you may encounter limits on the number of requests from a single IP address. Many services implement rate limiting at the IP level — for example, no more than 100 requests per minute from one address. Rotating proxies allows you to distribute requests across multiple IP addresses and continue testing without delays. This is especially relevant during load testing or automated checks.

Working through corporate proxies. If you work in a company with strict network policies, all outgoing traffic may pass through a corporate proxy server. In this case, configuring a proxy in Postman is not an option but a necessity. Without the correct configuration, your requests simply will not reach external APIs.

Debugging and monitoring traffic. Proxy servers can be used to intercept and analyze HTTP/HTTPS traffic. Tools like Charles Proxy, Fiddler, or mitmproxy allow you to see the details of each request and response, including headers, request body, and execution time. By configuring Postman to work through such a proxy, you gain a powerful tool for debugging complex API interactions.

Important: For testing APIs with geographical restrictions, it is recommended to use residential proxies, as they use real IP addresses from home users and are not identified by services as proxy servers. This is critical for testing accuracy.

Global Proxy Settings in Postman

Postman offers two main ways to configure proxies: global (applies to all requests) and individual (for specific collections or requests). Let's start with global settings, which can be found in the application's Settings menu.

Step-by-step guide to accessing proxy settings:

  1. Open Postman and click on the gear icon (Settings) in the upper right corner of the application, or use the keyboard shortcuts Ctrl+, (Windows/Linux) or Cmd+, (macOS).
  2. In the opened settings window, go to the Proxy tab.
  3. Here you will see several options for configuring the proxy server, which we will discuss in detail below.

In the Proxy Settings section, you will find three main modes for working with proxies:

  • Use System Proxy — use the system proxy settings of your operating system
  • Add a custom proxy configuration — manually configure your own proxy server
  • Global Proxy Configuration — global configuration with the ability to specify different proxies for HTTP and HTTPS

Each of these modes has its advantages and is suitable for different usage scenarios. Let's examine them in detail.

Using System Proxy Settings

The simplest way to configure a proxy in Postman is to use system settings. This mode is especially convenient if you work in a corporate environment where the proxy is already configured at the operating system level, or if you are using VPN clients that automatically configure the system proxy.

How to enable the use of system proxy:

  1. Open Settings → Proxy in Postman.
  2. Check the box next to Use System Proxy.
  3. Postman will automatically detect the proxy settings from your OS configuration.
  4. Click the Update button to save the changes.

After enabling this option, Postman will use the same proxy settings as your browser or other applications. This means that if you have configured a proxy in Windows (Settings → Network & Internet → Proxy), macOS (System Preferences → Network → Advanced → Proxies), or Linux (via environment variables), Postman will automatically pick up these parameters.

Limitation: System settings do not allow flexible management of proxies for different requests. If you need to test APIs from different regions or switch between proxy servers, it is better to use a custom configuration.

Setting Up a Custom Proxy Server

Custom proxy configuration gives you full control over traffic routing. You can specify a specific proxy server, port, protocol type, and even set different proxies for HTTP and HTTPS requests. This method is ideal for testing using commercial proxy services or your own proxy infrastructure.

Step-by-step setup for a custom proxy:

  1. Open Settings → Proxy in Postman.
  2. Make sure the Use System Proxy option is disabled.
  3. Enable the Add a custom proxy configuration option.
  4. In the Proxy Type field, select the protocol: HTTP, HTTPS, or SOCKS5.
  5. In the Proxy Server field, enter the address of your proxy server (for example, proxy.example.com or IP address 192.168.1.100).
  6. In the Proxy Port field, specify the port (usually 8080 for HTTP, 1080 for SOCKS5, but it depends on your provider).
  7. If the proxy requires authentication, enable the Proxy Auth option and enter your username and password.
  8. Click Update to apply the settings.

After saving the settings, all outgoing requests from Postman will go through the specified proxy server. You can check the correctness of the configuration by sending a test request to an IP checking service, for example:

GET https://api.ipify.org?format=json

In the response, you should see the IP address of your proxy server, not your real IP. If the IP has not changed, check the entered data and ensure that the proxy server is working.

Configuring Different Proxies for HTTP and HTTPS

Postman allows you to configure separate proxy servers for HTTP and HTTPS traffic. This is useful if you are working with corporate infrastructure where a separate proxy with SSL inspection is used for secure connections.

For separate configuration:

  1. In the Proxy Settings section, enable Global Proxy Configuration.
  2. You will see two separate blocks: HTTP Proxy and HTTPS Proxy.
  3. For each block, specify your server, port, and authentication details.
  4. Save the changes.

Now HTTP requests will go through one proxy, while HTTPS will go through another. This is especially relevant for testing in hybrid infrastructures.

Working with Proxies Requiring Authentication

Most commercial proxy services and corporate proxies require authentication for access. Postman supports basic HTTP authentication (Basic Auth) for proxy servers, allowing you to securely transmit credentials.

Setting Up Proxy Authentication:

  1. In the proxy settings (Settings → Proxy), enable the Proxy Auth option.
  2. In the Username field, enter the username provided by your proxy provider.
  3. In the Password field, enter the password.
  4. Click Update to save.

Postman will automatically add the Proxy-Authorization header to each request going through the proxy. Credentials are transmitted in an encoded form (Base64), but for maximum security, it is recommended to use HTTPS proxies or SOCKS5 with encryption.

Tip: If you are using a proxy from a commercial provider, credentials are usually specified in the format username:password@host:port. In Postman, you need to enter this data separately: server and port in the respective fields, username and password in the Proxy Auth section.

Example Setup with Residential Proxy

Suppose you are using residential proxies to test an API that returns different content for users from the USA and Europe. Your proxy provider has provided the following details:

  • Server: us.residential.proxy.com
  • Port: 8080
  • Username: user_12345
  • Password: SecurePass789

The setup in Postman will look like this:

  • Proxy Type: HTTP
  • Proxy Server: us.residential.proxy.com
  • Proxy Port: 8080
  • Proxy Auth: enabled
  • Username: user_12345
  • Password: SecurePass789

After applying the settings, all your requests will be sent with IP addresses from the USA, allowing you to test geo-specific API behavior.

Setting Up SOCKS5 Proxy in Postman

SOCKS5 is a more versatile proxy protocol compared to HTTP/HTTPS. It operates at a lower level of the network stack and can proxy any type of traffic, not just HTTP. SOCKS5 is especially useful for testing APIs that use non-standard protocols or when maximum anonymity is required.

Advantages of SOCKS5 for API Testing:

  • Support for any protocols (HTTP, HTTPS, WebSocket, FTP, etc.)
  • Does not modify request headers (unlike HTTP proxies)
  • Supports UDP traffic (relevant for some real-time APIs)
  • Built-in support for protocol-level authentication
  • Better performance for HTTPS connections (no double SSL handshake)

Setting Up SOCKS5 in Postman:

  1. Open Settings → Proxy.
  2. Enable Add a custom proxy configuration.
  3. In the Proxy Type field, select SOCKS5.
  4. Enter the SOCKS5 server address and port (usually 1080, but it depends on the provider).
  5. If authentication is required, enable Proxy Auth and enter the credentials.
  6. Save the settings.

It is important to note that not all proxy providers support SOCKS5. If you need this protocol for testing, check with your provider for the availability of SOCKS5 endpoints. For example, mobile proxies often provide SOCKS5 in addition to HTTP/HTTPS for maximum flexibility.

Configuring Proxy Bypass Rules

Sometimes you need part of the requests to go through a proxy and part directly. For example, you are testing an external API through a proxy, but you are also working with a local development server (localhost) that should be accessible directly. For such scenarios, Postman offers the configuration of proxy bypass rules (Proxy Bypass).

How to configure bypass rules:

  1. In Settings → Proxy, find the section Bypass proxy for these hosts & domains.
  2. Enter a list of domains or IP addresses that should bypass the proxy, separating them with commas.
  3. Masks are supported: for example, *.internal.company.com will exclude all subdomains.
  4. Save the changes.

Examples of bypass rules:

  • localhost — bypass for local host
  • 127.0.0.1 — bypass for loopback address
  • 192.168.*.* — bypass for the entire local network
  • *.dev.company.com — bypass for internal dev servers
  • api.internal.service — bypass for a specific internal API

Bypass rules are especially useful in hybrid environments where you are simultaneously testing external APIs (through proxies for geo-targeting or bypassing restrictions) and internal services (directly for speed and ease of debugging).

Practical example: You are developing a mobile application that works with an external geolocation API (requires proxies from different countries) and an internal authorization API at auth.mycompany.local. Add *.mycompany.local to the bypass rules, and internal requests will go directly while external ones will go through the proxy.

Practical Proxy Usage Scenarios in Postman

Theory is good, but let's look at real scenarios for using proxies when testing APIs. These examples will help you understand how to apply proxy settings to solve specific tasks.

Scenario 1: Testing a geo-restricted API of a music streaming service

Task: Your company is developing a mobile application for music streaming. The API returns different track catalogs depending on the user's country due to licensing restrictions. You need to test that users from the USA, Germany, and Japan see the correct content.

Solution:

  1. Obtain residential proxies from three countries: the USA, Germany, Japan.
  2. Create three environments in Postman: "USA Testing", "Germany Testing", "Japan Testing".
  3. In each environment, create variables for proxy settings (although Postman does not support variables in proxy settings directly, you can document them in the environment description).
  4. Manually switch proxies in Settings → Proxy before testing each region.
  5. Send a request to the API: GET https://api.musicservice.com/v1/catalog
  6. Compare the results: the response should contain different tracks for each country.

To automate this process, you can use Newman (the CLI version of Postman) with proxy parameters, allowing you to run tests from a CI/CD pipeline with automatic proxy switching.

Scenario 2: Bypassing rate limiting during load testing

Task: You are testing the performance of a public API that has a limit of 100 requests per minute from a single IP. For full load testing, you need to send 1000 requests in a minute.

Solution:

  1. Use a pool of 10+ proxy servers with rotation.
  2. Set up the Postman Collection Runner with your test request.
  3. In the Pre-request Script, add logic for proxy rotation (note: Postman does not support programmatic proxy switching in scripts, so this scenario is better implemented through Newman with an external script).
  4. Alternative: use a proxy provider with automatic IP rotation (sticky sessions with a short TTL).

For such a scenario, data center proxies with rotation are ideal — they provide high speed and allow you to distribute the load across multiple IP addresses.

Scenario 3: Debugging HTTPS API with SSL inspection

Task: You are integrating with an external API that returns 500 errors, but the error details are not specified. You need to see the full content of the HTTPS request and response, including all headers and body.

Solution:

  1. Install a tool for intercepting HTTPS traffic: Charles Proxy, Fiddler, or mitmproxy.
  2. Configure the tool to listen on a port (usually 8888 for Charles, 8888 for Fiddler).
  3. Install the tool's SSL certificate in the system (instructions are usually provided in the application).
  4. In Postman Settings → Proxy, configure the proxy to localhost:8888.
  5. Disable SSL verification in Postman (Settings → General → SSL certificate verification → OFF) for testing purposes.
  6. Send the problematic request from Postman.
  7. In Charles/Fiddler, you will see the complete dump of the request and response, including decrypted HTTPS traffic.

This method is invaluable for debugging complex API issues, especially when documentation is incomplete or errors occur on the server side.

Scenario 4: Testing API through corporate proxy with a whitelist

Task: You work in a large company where all outgoing traffic goes through a corporate proxy. The proxy only allows access to whitelisted domains. You need to test a new external API that has not yet been added to the whitelist.

Solution:

  1. Submit a request to the IT department to add the API domain to the whitelist (may take days or weeks).
  2. For immediate testing: use personal mobile internet or set up a VPN.
  3. In Postman, add the API domain to the proxy bypass rules (Bypass proxy for these hosts).
  4. Connect to an alternative network (mobile hotspot, home Wi-Fi via VPN).
  5. Conduct testing.
  6. After the domain is added to the corporate whitelist, remove the bypass rule and work through the standard proxy.

This scenario highlights the importance of flexible proxy configuration and bypass rules in corporate environments.

Troubleshooting Common Issues with Proxies

Even with the correct proxy setup, issues may arise. Let's look at the most common errors and how to resolve them.

Problem 1: "Could not get any response" or "Error: connect ETIMEDOUT"

Causes:

  • The proxy server is unavailable or the address/port is incorrectly specified
  • The proxy requires authentication, but credentials are not provided
  • Firewall is blocking the connection to the proxy
  • The proxy server is overloaded or temporarily unavailable

Solutions:

  1. Check the availability of the proxy via terminal: curl -x http://proxy:port https://api.ipify.org
  2. Ensure that the address and port are correctly specified (without extra spaces, correct protocol)
  3. Check if authentication is enabled and if the username/password are entered correctly
  4. Try another proxy server from your pool
  5. Temporarily disable the proxy in Postman and check if the request works directly

Problem 2: "407 Proxy Authentication Required"

Cause: The proxy requires authentication, but credentials are not provided or are incorrect.

Solutions:

  1. Enable Proxy Auth in Postman settings
  2. Check the correctness of the username and password (pay attention to case, special characters)
  3. Ensure that your IP address is allowed in the proxy provider's whitelist (if applicable)
  4. Check the validity of the credentials (some providers generate temporary passwords)

Problem 3: SSL/TLS errors when using HTTPS proxies

Typical errors: "SSL certificate problem", "unable to verify the first certificate", "self-signed certificate in certificate chain".

Causes:

  • The proxy performs SSL inspection and inserts its certificate
  • The proxy certificate is not installed in the trusted certificates on your system
  • Issues with the certificate chain on the API side

Solutions:

  1. For testing purposes: disable SSL verification in Postman (Settings → General → SSL certificate verification → OFF). Warning: do not use this in production!
  2. For production: install the root certificate of the proxy in the system and Postman (Settings → Certificates → CA Certificates)
  3. Use a proxy without SSL inspection (SOCKS5 or HTTP proxy with SSL pass-through)
  4. Contact the proxy administrator for the correct certificate

Problem 4: Slow request speeds through the proxy

Causes:

  • The proxy server is geographically distant from you or from the target API
  • The proxy is overloaded (especially relevant for free or cheap proxies)
  • Slow communication channel from the proxy provider
  • Double SSL encryption (your client → proxy → API)

Solutions:

  1. Choose a proxy server closer to the target API (if the API is in the USA, use a proxy from the USA)
  2. Switch to a faster type of proxy (for example, from residential to data center proxies for tasks where geo is not critical)
  3. Use SOCKS5 instead of HTTP for HTTPS requests (less overhead)
  4. Consider premium proxies with guaranteed bandwidth
  5. For non-critical requests, temporarily disable the proxy

Problem 5: IP address does not change even though the proxy is configured

Causes:

  • The proxy is configured but not activated (forgot to click Update)
  • The API domain is added to the proxy bypass rules
  • The system proxy overrides Postman settings
  • DNS queries are going directly (DNS leak)

Solutions:

  1. Check that the proxy is indeed active: send a request to https://api.ipify.org and check the IP in the response
  2. Ensure that Use System Proxy is disabled if you are using a custom proxy
  3. Check the list of bypass domains and remove the target domain if it is there
  4. Restart Postman after changing proxy settings

Debugging Tip: Create a test request to an IP checking service (for example, https://api.ipify.org, https://ifconfig.me, or https://api.myip.com) and save it in a separate collection called "Proxy Tests". Send this request after each change in proxy settings for quick verification.

Conclusion

Configuring proxies in Postman is a powerful tool for expanding the capabilities of API testing. You have learned how to set up both system and custom proxy servers, work with HTTP and SOCKS5 protocols, configure authentication and bypass rules. These skills will allow you to effectively test geo-restricted APIs, bypass rate limiting, work through corporate proxies, and debug complex issues using traffic interception tools.

The key takeaways from this...

```