Wix Velo
Static IP for Wix Velo: call IP-allowlisted APIs from your Wix site
Make the allowlisted API call from your Wix Velo backend. For HTTPS APIs, the example below uses QuotaGuard Shield and an explicitly configured proxy agent. The API sees one of your two fixed source IPs; Shield also encrypts the connection from your backend to the proxy.

Two routes through your subscription's assigned IPs
Route 1 uses QuotaGuard Static; Route 2 supports Shield or Static. Implementations using the same Static subscription share its two assigned IPs. For Shield, register both addresses assigned to that Shield subscription.
Static and Shield use different IP pools. When selecting another subscription, check its dashboard and add any addresses the API owner has yet to register. Different standard subscriptions may share a pair.
| Route | Use it for | Product | Proxy URL | Addresses to register |
|---|---|---|---|---|
| 1. Package | http:// APIs | Static | http:// :9293 | Both IPs assigned to the selected Static subscription |
| 2. Backend code | https:// APIs | Shield, or Static | https:// :9294 (Shield); http:// :9293 (Static) | Both IPs assigned to the selected subscription |
If your API URL starts with https://, go straight to Route 2.
The traffic path
Your Wix backend starts the outbound connection. The API checks its source IP against the allowlist.
- Your Wix backend runs your Velo code, either the Static IP Request package or your own web module.
- The QuotaGuard proxy receives the call. On Shield, the hop from your backend to the proxy is TLS-encrypted. On Static, it's a plain HTTP proxy connection.
- The API receives the call from one of the two static IPs you added to its allowlist.
For an HTTPS API, your session with the API runs inside the tunnel from end to end. Neither Shield nor Static decrypts it.

Route 1: Wix's Static IP Request package with QuotaGuard Static
Use Wix's Static IP Request package with QuotaGuard Static for plain HTTP endpoints. The package readme describes sending HTTP requests from your Wix site to services that require a static IP through a proxy you provide.
The package asks for a proxy host, port, username and password. Find all four in your QuotaGuard Static connection URL:
http://USERNAME:PASSWORD@PROXY_HOST:9293
| Package setting | Set it in | Value from your Static URL |
|---|---|---|
| Proxy host | Package config | The hostname |
| Proxy port | Package config | 9293 |
proxyUsername | Secrets Manager | The username |
proxyPswd | Secrets Manager | The password |
- Create a QuotaGuard Static subscription. Your dashboard shows your two static IPs and your connection URL.
- Install the package. In the code panel, open Packages & Apps, choose Install Velo Package and pick Static IP Request.
- Add the credentials as secrets. In the Secrets Manager, add
proxyUsernameandproxyPswd. If the API needs a key, add it asendpointApiKey, as the readme describes. - Set the proxy host and port. Put your QuotaGuard hostname and
9293in the package's config, in your site's backend code. The optionalbaseURLis useful when every call goes to one service. - Check the installed package's API before calling it. In Packages & Apps → Velo Packages → Static IP Request, record the installed version from Package Manager. Open its README and backend
static-ip.js. Follow entry-point re-exports to confirm the name available through@velo/static-ip-request-backend.
Wix's online README uses sendCustomHttpRequest in the import and sendCustomHttpReq in the declaration. Use the installed export. Inspect its configs handling, success return and error handler before depending on its arguments or result.
Call it from backend code with one configuration object: an absolute url (or an endpoint path with the configured baseURL) and method: 'GET'. Keep credentials in Secrets Manager. For frontend access, wrap the backend function in an appropriately permissioned web module and return only the API data your page needs.
When your installed package exposes sendCustomHttpRequest, use this backend import and call:
// Backend code
import { sendCustomHttpRequest } from '@velo/static-ip-request-backend';
const result = await sendCustomHttpRequest({
url: 'http://API_HOST/PATH',
method: 'GET',
});
- Give the API both static IPs, and wait for the API owner to confirm they are on the list.
For another exposed name, match both import and call to that export. Wix's Fetch documentation scopes Wix Fetch to HTTPS; this package uses its own axios client, listed in its README. See Wix's package inspection and web-module guidance.
For account or payment data, use Route 2 with Shield to encrypt the hop from your site to the proxy. Static uses a plain HTTP connection for that hop.
Route 2: Velo backend code with Shield or Static
For HTTPS endpoints, send the call from a Velo web module with an HTTP client that sends CONNECT to the proxy. Start with QuotaGuard Shield. Its proxy URL starts with https:// and uses port 9294. If you use Static instead, the same code works with Static's http:// URL on port 9293.
What Wix's docs allow
- Wix lets you install public npm packages from the Package Manager and use them in backend code. Its own examples include
axios. - Wix says ES modules and packages with native modules are incompatible, and that every dependency of a package must be compatible too.
https-proxy-agentis anhttp.Agentthat connects to an HTTP or HTTPS proxy and issuesCONNECTfor your HTTPS request. Versions 8.0.0 and later are ES modules. Install version 7.0.6, which is CommonJS. In the Package Manager, open Installed Packages, use Choose a version and pick 7.0.6.- Wix keeps secrets in the Secrets Manager, readable only from backend code. Read one with
getSecretValuefromwix-secrets-backend.v2, and never return it to the frontend.
Set it up
- Create a Shield subscription. Your dashboard shows your two static IPs and your connection URL.
- Store the whole URL as one secret. Name it
quotaguardProxyUrlin Secrets Manager. The elevated backendgetSecretValue()call takes that name and returns a response object; pass itsvaluestring toHttpsProxyAgent. Keep the URL and credentials server-only. The Admin-only methods below report generic failures without exposing connection details. - Install two npm packages in the editor's Package Manager:
axios, andhttps-proxy-agentat 7.0.6. The Wix IDE can use packages you installed in the editor, but it can't install them. - Add a web module named
quotaguard.web.jsin your backend files.
// backend/quotaguard.web.js
import { Permissions, webMethod } from 'wix-web-module';
import { secrets } from 'wix-secrets-backend.v2';
import { elevate } from 'wix-auth';
import axios from 'axios';
import { HttpsProxyAgent } from 'https-proxy-agent'; // install version 7.0.6
const getSecretValue = elevate(secrets.getSecretValue);
async function viaQuotaGuard(url) {
try {
const { value: proxyUrl } = await getSecretValue('quotaguardProxyUrl');
return await axios.get(url, {
proxy: false, // the agent handles the proxy, not axios
httpsAgent: new HttpsProxyAgent(proxyUrl),
});
} catch {
// Do not log or return original errors, configs or proxy credentials.
console.error('QuotaGuard backend request failed.');
throw new Error('The backend request could not be completed.');
}
}
// Shows the source IP the outside world sees. Run this first.
// Point this at an IP echo service of your choice.
export const getEgressIp = webMethod(Permissions.Admin, async () => {
const res = await viaQuotaGuard('https://IP_ECHO_HOST/');
return res.data;
});
// Your real call. Return only what your page needs.
export const getFromApi = webMethod(Permissions.Admin, async () => {
const res = await viaQuotaGuard('https://API_HOST/PATH');
return res.data;
});
- Check the source IP first. Call an IP echo service through the proxy from your backend, then confirm the address you see is one of your two static IPs. Replace the placeholder host in
getEgressIp, then call it from the page code below.
// In page code
import { getEgressIp } from 'backend/quotaguard.web';
$w.onReady(async () => {
console.log(await getEgressIp());
});
- Send the API owner both static IPs, then make your real call with
getFromApionce they confirm.
Use https:// with port 9294 for Shield. Pass the agent on each axios call you want proxied, and set proxy: false so axios leaves the proxy to the agent, as its request config describes. The example uses Permissions.Admin.
Wix tells you to set each web method's permission as restrictively as the job allows, so loosen it only if visitors need to trigger the call.
Shield or Static
Start with QuotaGuard Shield for API calls that carry account, order or customer data. Shield adds TLS to the connection between your Wix backend and the proxy, alongside your HTTPS session with the API.
Static and Shield include the same request and bandwidth allowance at each plan level. On the Starter plan, Static is $19 a month and Shield is $29 a month. Compare all plans on the pricing page.
Give the API both static IPs
Each subscription comes with two static IPs. Traffic can use either IP at any time, so give the API owner both. An allowlist that is missing one of them will reject some of your traffic.
Troubleshoot rejected API calls
- The source IP isn't one of your two static IPs. On Route 1, recheck the host, the port and the two secret names. On Route 2, confirm this call passes the agent and that
proxy: falseis set, so axios uses the agent rather than its own proxy settings. - The package won't load after you install it. Check the version. Wix's docs say ES modules are incompatible, so install
https-proxy-agent7.0.6 and not 8.0.0 or later.
Keep your API keys, tokens and scopes exactly as the API owner set them up. The allowlist is an additional check.
For apps outside Wix, see Node.js with Axios and Shield and static IPs on no-code platforms.
Wix and npm documentation
These Wix and npm references were read on Dec 4, 2026. Confirm package versions in your Package Manager before you build, since the documentation can change.
- Wix: Static IP Request package readme
- Wix: About npm Packages and Work with npm Packages in the Editor
- Wix: Secrets Manager and getSecretValue
- Wix: About Web Modules and Wix Fetch
- npm: https-proxy-agent readme and package metadata, and the axios request config
FAQ
Does Wix Velo give my site a fixed outbound IP for API calls?
Wix describes its cloud IP as dynamic. For an API that checks source IPs, make the request from your Velo backend through a static IP proxy. The API sees a static address from the proxy subscription. The browser can trigger the operation, but the backend must make the proxied call.
If the page currently calls the provider directly, move that call into a Velo web module. Have the page call the exported web method instead. This changes the route for that API call, not for other requests from the browser or other backend clients.
Do I need Shield just because my Wix backend calls an HTTPS API?
An HTTPS API works through either QuotaGuard product with a backend client that sends CONNECT. With Static, the proxy URL is http:// on port 9293. The HTTPS session with the API runs inside the tunnel and stays encrypted end to end. Use Shield's https:// proxy URL on port 9294 to encrypt the backend-to-proxy hop as well.
The proxy URL goes into the agent. Your API URL stays https:// and goes into the request. If a Shield call fails during TLS setup, check which peer failed: the proxy hostname and port for the first handshake, or the API hostname and certificate for the second. Keep certificate verification enabled for both.
What do I put in Wix's Static IP Request package for a plain HTTP endpoint?
For a legacy http:// API that can be called without sending sensitive data, install Static IP Request as a Velo package. Set the package's proxy host to the hostname from the Static connection URL and its port to 9293. Put the username in proxyUsername and the password in proxyPswd in Secrets Manager.
Pass an absolute request URL, or set baseURL in the package config and pass a relative endpoint path. Wix's package README also lists endpointApiKey as an optional secret. If the provider requires credentials or sensitive data in the request, use its HTTPS endpoint and a backend CONNECT client instead.
Which function does Wix's Static IP Request package export?
Check the installed package's static-ip.js in the Wix editor. The public README shows sendCustomHttpRequest in the import and sendCustomHttpReq in the function declaration. Use the exported spelling in your installed version with the @velo/static-ip-request-backend module path.
Start with a backend call that passes a config object with url and method: 'GET'. Inspect the same function's return statement before you decide how to read the result. If the import stops working after a package update, check the installed export again before changing the proxy settings.
Why pin https-proxy-agent to 7.0.6 in Wix Velo?
Version 7.0.6 is CommonJS; 8.0.0 is an ES module. Wix's Velo npm package rules exclude ES-module npm packages and require compatible dependencies. Pinning 7.0.6 addresses the module-format issue. A CommonJS release still needs to fit the site's Node.js runtime and dependency rules.
In the Wix editor, open Packages & Apps, then the npm Package Manager. If the package is already installed, select Installed Packages → More Actions → Choose a version and pick 7.0.6. The Wix IDE can use packages installed in the editor, but package installation and version changes happen in the editor.
How do I make Axios use the proxy for a specific Velo backend call?
In backend code, select Axios's Node HTTP adapter with adapter: 'http'. Set httpsAgent to a HttpsProxyAgent instance built from your subscription's proxy URL. Set proxy: false to disable Axios's own proxy selection. The agent still opens the tunnel for that HTTPS request.
Apply those options on the actual API call or on a dedicated Axios instance that makes it. A separate wix-fetch call or a provider SDK won't inherit options from your Axios request. If the SDK offers no way to configure the transport it uses, make the allowlisted operation with the backend client you control.
How do I read the proxy URL with Wix Secrets Manager v2?
Save the full connection URL as quotaguardProxyUrl in the site's Secrets Manager. In backend code, use elevate from wix-auth with secrets.getSecretValue from wix-secrets-backend.v2. The method takes the secret's name as a string and returns an object. Pass its value field, which holds the saved URL, to the agent.
const readSecret = elevate(secrets.getSecretValue);
const { value: proxyUrl } = await readSecret('quotaguardProxyUrl');
Put the await inside your backend request function. Check that the value is a non-empty string before constructing the agent. The URL contains proxy credentials. Keep it out of page code, source control, logs and client responses, including error responses.
Should a Wix web method that calls an allowlisted API use Permissions.Admin?
Use Permissions.Admin for an operator-only IP check or API tool. On a published site, Wix limits that web method to signed-in owners and collaborators. Keep the helper that reads the proxy secret and makes the outbound request private to the backend.
If visitors need the operation, expose a separate web method with the narrowest permission it needs. Authorize the requested action in backend code, keep the upstream host and method under your control, and return only the fields the page needs. Don't accept a destination URL or request options from the browser.
Which IPs should the API owner allowlist if my Wix site uses both routes?
For each route, give the API owner both outbound IPv4 addresses listed for the QuotaGuard subscription that route uses. If the provider requires CIDR notation, enter each address separately as a /32. Give them the egress addresses, not the proxy hostname or the credential-bearing connection URL.
The Wix package and your backend code use the same pair when both use the same Static subscription. Static and Shield draw from separate address pools. If one route uses Static and the other uses Shield to reach the same API environment, register both pairs there.
How can I confirm which IP my published Wix backend sends requests from?
From the published site, run a backend GET to https://ip.quotaguard.com through the same Axios client and proxy settings you use for the HTTPS API. Don't attach the provider's API token. Read the JSON ip field and check that it matches either address for the subscription. Keep this check admin-only.
Seeing one address repeatedly is normal. The address is selected per connection, not per request. A match confirms the echo request's route. It doesn't prove failover or the route to another host. Once both addresses are registered, use the same backend client for a provider-documented read-only request in the allowlisted environment.
Why am I getting a 403, a proxy 407, or a timeout from Wix?
Find out which step failed before changing the allowlist. In your backend logs, record the step and status code if there is one. Leave out the proxy URL, headers and raw Axios error or config.
- If Wix rejects the web method before the backend call starts, check the live caller's role. Wix Preview runs with the Admin role, so it can pass a call that the published site denies.
- A
407on CONNECT points to proxy authentication. Check that the subscription is active and the backend uses its current connection URL. - For a
401or403from the API after the tunnel opens, use the provider's error details. Check token scope and the API environment as well as both allowlist entries. A timeout alone doesn't establish an allowlist rejection. If the backend IP check also times out, investigate the connection to the proxy and TLS setup first.
Do proxy secrets carry over when I duplicate a Wix site for staging?
No. A duplicate Wix site starts with an empty Secrets Manager. Re-create the named secrets on the duplicate, using the credentials and connection URL intended for it. Copying code that reads quotaguardProxyUrl doesn't copy the value.
Before calling the provider, check the duplicate's configured API environment and confirm the source IP using its deployed backend. If you use a separate proxy subscription for staging, compare the address against that subscription's pair and check the allowlist for the environment staging actually calls.
How do I switch a Wix Velo API integration from Static to Shield without an allowlist gap?
Add both Shield IPs to the provider's allowlist before changing the Wix connection secret. Shield is a separate subscription with its own proxy URL and pair. Keep Static active during the cutover. If the provider can't hold both pairs at once, arrange the allowlist change with them before switching.
For the backend Axios route, update the value in Secrets Manager to the full Shield https:// URL on port 9294. Wix applies secret edits without republishing, so finish the allowlist work first. If you're moving from the Wix package, move the API call to the backend CONNECT client, too.
Verify the published backend's egress against the Shield pair, then run a documented read-only call to the provider. Retire the Static route and remove its allowlist entries only after confirming that no other callers still use them.
Give your Wix site a fixed IP your API can allowlist
Set up Shield, send the API owner both static IPs, and check the source IP from your deployed site.