Proxied API Request URL Structure
When using the ProxyBox to forward requests to a target API or service, each proxied request follows a clear URL pattern. For example:https://pbx-<proxyboxId>.pbxz.io/proxy-https/ecs-iot.com:443/api
URL Parts
| Part | Example | Description |
|---|---|---|
| ProxyBox Domain | https://pbx-<proxyboxId>.pbxz.io | The address of your ProxyBox instance. Replace <proxyboxId> with your unique ID. |
| Proxy Route Type | /proxy-https | Defines how the ProxyBox connects to the target server: use proxy-https for secure upstream requests, or proxy-http for plain HTTP. |
| Target Host | ecs-iot.com | The domain name of the target server you want to reach through the proxy. |
| Target Port | :443 | The port number on the target server. Typically 443 for HTTPS or 80 for HTTP. |
| Target Path | /api | The path on the target server you want to access. Everything after the target host and port. |
Full URL Pattern
Use this general pattern to construct your proxied API requests:https://{proxybox-domain}/{proxy-route-type}/{target-host}:{target-port}/{target-path}
Where:
{proxybox-domain}→ Your unique ProxyBox Domain{proxy-route-type}→ Eitherproxy-httpsorproxy-http{target-host}→ The upstream domain name{target-port}→ The upstream port (e.g.,443or80){target-path}→ The endpoint path on the target server
Example
To forward an HTTPS request tohttps://ecs-iot.com:443/apithrough ProxyBoxjrdn, the full proxied request URL would be:https://pbx-jrdn.pbxz.io/proxy-https/ecs-iot.com:443/api