Skip to content
1 GB of residential proxies, free. $0 today, card required.
Settings precedence runbook

Postman Proxy Settings: Custom Proxy, Newman and 407 Fixes

Point Postman's custom proxy at Databay's gateway, stop system and environment settings from overriding it, verify the exit with a test script, and fix 407, SSL and timeout errors.

Postman → DatabayCustom proxy takes precedence; a test checks the exit
PostmanAPI client
Databay gateway modesClient support is covered below
gw.databay.co:8888
By Databay Research Team10 min runbook

Operating principle

Send Postman requests through one explicit custom proxy, switch off inherited system and environment routes, and check the exit before the real API.

Which Postman Proxy Setting Routes Requests Through Databay

Postman uses the word proxy for two unrelated features. The Proxy tab in the desktop app's settings decides how the requests you send leave your computer, and that outbound configuration routes API calls through Databay. The built-in capture proxy, started from Tools in the footer, listens on port 5559 by default and intercepts traffic from browsers, phones and other clients configured to use it. It is out of scope here, and Postman's capture guide does not describe forwarding captured traffic to an upstream proxy.

Databay provides one gateway, gw.databay.co on port 8888, for HTTP proxying, HTTPS CONNECT tunnelling and SOCKS5, with no UDP. The dashboard issues the username and password; the username also carries pool, country and session choices.

Use the route only for APIs you own or are permitted to test, and follow each destination's terms. A proxy changes a request's network path, not who is authorized to call an API.

Use System Proxy or a Custom Proxy Configuration

Postman's Proxy settings page says Use system proxy and Respect HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables are on by default. With both Use system proxy and Use custom proxy configuration on, Postman uses the custom proxy. And Postman's proxy troubleshooting notes that when proxy environment variables are set, Postman uses the system proxy and ignores its own proxy settings, so an inherited variable is the first suspect when a check reports the wrong route.

OptionEffectDatabay fit
Use system proxyFollows the operating-system proxy. If that points at the gateway, every application honouring it sends traffic through Databay, billed per GB. Credentials go under Default proxy configuration > This proxy requires authentication, then Save and Restart Postman.Only on a test machine set aside for this route
Use custom proxy configurationSends Postman's API requests, for the schemes you select, through the proxy server you enter.Recommended

Map Databay Values to Postman's Custom Proxy Fields

Open settings from the gear icon in the header (Postman's pages call the item Settings or App settings), or press Ctrl+Comma (Cmd+Comma on macOS), then work under Proxy configurations for sending requests on the Proxy tab.

Postman controlDatabay valueWhat to verify
Use system proxyOffOnly one route is active
Respect HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variablesOff while verifyingNo inherited variable chooses the route
Use custom proxy configurationOnThe fields below are live
Use proxy forHTTP and HTTPS, the defaultHTTPS stays selected, or HTTPS checks skip the custom proxy
Proxy server typeHTTPMatches the gateway's HTTP proxy and CONNECT path
Proxy server host and portgw.databay.co and 8888No http:// prefix and no :8888 appended to the host
Proxy authOnOtherwise no credentials are sent
UsernameComplete dashboard usernameRouting segments intact, no trailing space
PasswordDashboard proxy passwordFrom a password manager, never in a screenshot
Host exclusion fieldlocalhost, 127.0.0.1, internal hostsNeither verification host is listed

Copy the username exactly as the dashboard shows it. The documented example USER-zone-residential-countryCode-us requests a US residential exit; for other pools, copy the dashboard's string instead of editing this one. Proxy auth authenticates to the gateway; the request's Authorization tab authenticates to the destination API and is the wrong place for Databay credentials.

Choose HTTP Mode and Keep the Exclusion List Short

Postman's proxy guide lists HTTP, SOCKS5, SOCKS5H, SOCKS4 and SOCKS4A as proxy server types, and only HTTP and HTTPS requests can use a SOCKS proxy. SOCKS4 and SOCKS4A are not Databay protocols. Databay accepts SOCKS5 on the same port, but Postman documents Proxy auth as basic authentication without describing SOCKS5 username negotiation, so start with HTTP; HTTPS destinations keep end-to-end TLS inside a CONNECT tunnel. Try SOCKS5 only for a specific need, and keep it only if the same exit check passes; the HTTP versus SOCKS5 explainer covers the trade-offs.

The exclusion field at the end of the custom block takes a comma-separated list of hosts whose requests won't use the custom proxy. Limit it to local and internal hosts; an entry matching api.ipify.org or databay.com makes verification report your direct address.

Verify the Exit Inside Postman Before Calling Your API

  1. With the custom proxy off, send GET https://api.ipify.org?format=json and save the returned ip in the active environment as directIp, the direct-route control.
  2. Turn the custom proxy on and create GET https://databay.com/what-is-my-ip/json, which reports the observed address as UserIpAddress and a country estimate as IPCountry. Set the environment variable expectedCountry to the code you requested, such as US.
  3. Add the script below under Scripts > Post-response and send.
  4. Call the authorized API only after every test passes.
pm.test("endpoint answered", function () {
  pm.response.to.have.status(200);
});

const body = pm.response.json();

pm.test("exit differs from the direct control", function () {
  pm.expect(body.UserIpAddress).to.be.a("string");
  pm.expect(body.UserIpAddress).to.not.eql(pm.environment.get("directIp"));
});

pm.test("country matches the requested target", function () {
  pm.expect(body.IPCountry).to.eql(pm.environment.get("expectedCountry"));
});

Results appear on the Test Results tab. The Console, opened from Console in the footer, logs the proxy configuration and certificates used for each request; its network addresses are connection details, while the endpoint's answer is the observed exit.

A pass is point-in-time evidence that this request left through Databay, not proof of anonymity or future routing. Connection or tunnel reuse may keep the same exit, and a new connection may select another, but a different address is never promised. Record the Postman version, time, target and observed address; the What Is My IP page shows a sample response.

Ready to run this for real?

Credentials appear in your dashboard in minutes, on the same gateway and username format this Postman guide uses.

Route Newman and Web App Requests Deliberately

Newman needs its own route. Postman's Newman page names the Newman README as the full reference, and the README says Newman reads HTTP_PROXY/http_proxy, HTTPS_PROXY/https_proxy and NO_PROXY/no_proxy. These variables have no credential field, so this is the only place this guide shows the proxy URL form. Keep the whole URL in a masked CI secret, percent-encode reserved characters, never echo it or enable shell tracing around it, and use the separate fields in the desktop app.

# DATABAY_PROXY_URL: masked CI secret, form http://USER:PASS@gw.databay.co:8888
# Use http:// in both values; HTTPS destinations are tunnelled with CONNECT.
export HTTP_PROXY="$DATABAY_PROXY_URL"
export HTTPS_PROXY="$DATABAY_PROXY_URL"
export NO_PROXY="localhost,127.0.0.1"

newman run databay-exit-check.postman_collection.json \
  --env-var "directIp=$RUNNER_DIRECT_IP" \
  --env-var "expectedCountry=US" \
  --timeout-request 20000 \
  --bail

Export the exit-check request as that collection file, and capture RUNNER_DIRECT_IP from a run without proxy variables so an ignored variable fails the job. --timeout-request takes milliseconds; --bail exits with code 1 on a failed test. Never add -k or --insecure; the README documents --ssl-extra-ca-certs for a private CA. Postman now marks Newman as deprecated and recommends the Postman CLI; the CLI pages reviewed for this revision do not document proxy variables, so rerun the exit check before migrating a proxied job.

In the web app, Postman's install guide says you can configure a proxy for sending requests but not for connecting to online services. The selected agent decides where a request leaves from: the Desktop Agent uses your machine and network, the Cloud Agent Postman's cloud servers, the Browser Agent your browser, and the Interceptor Agent a browser extension. Run the exit check with the agent you will use.

Troubleshoot 407, SSL Certificate Errors and Timeouts by Hop

Find the first layer that failed. The proxy hop is reaching gw.databay.co:8888, authenticating and opening a tunnel; the destination hop is TLS and HTTP with the API inside it. Classify the failed request's Console entry, since error wording varies by version.

Evidence in PostmanHopNext check
Connection refused, gateway DNS failure, or a timeout with no responseProxy hop: TCPHost without scheme, port 8888, and outbound access, which some corporate networks allow only through their own proxy
407 Proxy Authentication Required, or a tunnel error naming the proxyProxy hop: authenticationProxy auth on, complete username, no stray spaces in the password, credentials in the custom block rather than only under Default proxy configuration, no inherited proxy variable
Tunnel refused with another statusProxy hop: CONNECTKeep the evidence, test one approved destination, and contact support with redacted details
Certificate or self-signed certificate errorDestination hop: TLSThe destination's chain or a TLS-inspecting device on your network; for a private API, add its CA
401, 403 or 429 from the APIDestination hop: HTTPThe API decided: fix authorization, honour Retry-After, and never switch sessions or exits to get around it
Spinner until Postman gives upEither hopCompare with the direct-route control, then raise Request Timeout once, with a recorded reason

Postman's troubleshooting pages suggest turning SSL certificate verification off when a certificate fails. Do not do that for real traffic, because Postman could then hand your API credentials to an intercepting device. Keep SSL certificate verification on in General settings and each request's Enable SSL certificate verification toggle on; for an internal API, the certificates guide documents adding its CA as a PEM file.

While verifying, set Request Timeout in General settings to a bounded example value such as 20000 ms, since 0 waits forever. To see whether time goes to the gateway or the API, repeat the request from a terminal with the cURL proxy guide, which separates connect, TLS and total timing.

Select the Databay Product and Session Before Pasting the Username

Postman never chooses the Databay pool, geography or session; the dashboard-generated username does.

Every Databay pool is shared; none reserves an address for one customer. A session segment, as in USER-zone-residential-countryCode-us-sessionId-abc123, requests continuity for up to 1440 minutes on Premium Residential and Residential Flex where available, or up to 120 minutes on Datacenter and Mobile. The IP can change before the window ends. Use it when a multi-step test against your own API should leave from one address, and re-run the exit check at checkpoints instead of assuming continuity held. Traffic is billed per GB, another reason to prefer the custom configuration: only the requests you route consume traffic.

Keep Databay Credentials Out of Collections, Screenshots and Console Logs

  • Keep the password in the team password manager or secret store; enter it only in Proxy auth or a masked CI secret.
  • Never save proxy credentials in environments, collection variables, headers or the Authorization tab; those travel with exports and shared workspaces.
  • Do not screenshot the Proxy tab with credentials visible, or paste settings into tickets and chat.
  • The Console records proxy configuration and Postman's support guidance asks for Console logs, so redact usernames, passwords and authorization values first.
  • After any accidental disclosure, replace the credential, then update the app and the CI secret.

Before the first real request, record the owner, approved API, product and session choice, and stop conditions: a 401, 403, 429, CAPTCHA or unclear permission ends the run until the owner resolves it.

Troubleshooting desk

Questions specific to Postman

Where are the proxy settings in Postman?
In the desktop app, open settings from the gear icon in the header, or press Ctrl+Comma (Cmd+Comma on macOS), and select the Proxy tab. Proxy configurations for sending requests holds Use system proxy, the environment-variable option and Use custom proxy configuration.
Should I use the system proxy or a custom proxy for Databay?
Use a custom proxy configuration. Postman uses it when both options are on, it applies to the requests you send from Postman, and it leaves the operating system unchanged. Pointing the system proxy at the gateway routes other applications too, and Databay bills traffic per GB.
Does Postman's built-in proxy send my requests through Databay?
No. The built-in proxy, started from Tools in the footer, captures traffic that other clients such as browsers and phones send to it. The route for requests you send from Postman is set on the Proxy tab in settings.
Why does Postman report 407 Proxy Authentication Required?
The gateway did not accept the proxy credentials. Check that Proxy auth is on, the username is the complete dashboard string, the password has no stray spaces, and no inherited HTTP_PROXY or HTTPS_PROXY variable is overriding the app. The Console shows the proxy configuration used for the request.
How do I use a proxy with Newman?
Newman reads HTTP_PROXY, HTTPS_PROXY and NO_PROXY from its environment, according to the Newman README. Store the proxy URL as a masked CI secret, keep the http:// scheme in both variables, and run an exit-check collection first. Postman's current documentation marks Newman as deprecated.
Should I turn off SSL certificate verification if requests fail through the proxy?
No. Keep verification on for real traffic. With CONNECT tunnelling, the certificate Postman checks comes from the destination or from an inspecting device on your network, so fix the chain or add your private CA under Certificates in settings instead.
Adjacent runbooks

Same gateway, different control surface

  • cURL

    Command-line client

    curl -> proxy auth -> CONNECT or SOCKS -> approved destination

  • Node.js fetch

    HTTP client library

    fetch -> env opt-in or same-package dispatcher -> proxy evidence

  • Python Requests

    HTTP client library

    Session -> HTTPAdapter policy -> proxy hop -> approved destination

  • Android

    Mobile operating system

    Wi-Fi network -> Manual or PAC proxy -> app 407 prompt -> observed exit

  • Google Chrome

    Desktop browser

    --user-data-dir -> --proxy-server -> proxy sign-in -> observed exit

  • Docker

    Container platform

    Compose secret -> app proxy client -> gw.databay.co:8888 -> observed exit

Pick the network once the route works. Residential for home-connection exits with state, city, ZIP and ASN targeting; datacenter for fast server IPs on public websites. Switching is one word in the username.

Residential →Datacenter →

Where teams run Postman behind the gateway: Proxies for website monitoring · Proxies for web scraping

Ship Postman to production

Create an account, drop in your gateway credentials, and route your first Postman request in minutes.

Pricing, order minimums, and traffic validity vary by product.