Create a custom preview proxy target
Creates a durable preview proxy grant for a customer-run reverse proxy.
The returned upstream URL(s) use header token transport and include the
non-secret __ns_preview_transport=header marker. The proxy must send
the returned token value in x-nullspace-preview-proxy-token on every
upstream request. HTTP and WebSocket tokens are kind-scoped and returned
separately when both transports are requested.
Authorizations
API key passed as Bearer token
Path Parameters
Sandbox ID (e.g. sb_a1b2c3d4)
Sandbox guest port to expose through browser preview. Reserved generic-preview ports are rejected:
22 is SSH-specific and 5900-5999 are desktop/VNC-specific.
1 <= x <= 65535Body
Requested proxy grant lifetime. Defaults to the deployment edge token TTL, clamped between 60 seconds and 24 hours.
60 <= x <= 86400Proxy upstream transports to authorize.
1http, websocket Token transport used by the customer proxy when forwarding to Nullspace edge.
header When true, include whether private traffic access is required and the header name to use.
Response
Preview proxy target metadata and header token values
x-nullspace-preview-proxy-token header Headers customer proxies should preserve or set when forwarding browser requests.
x-forwarded-host, x-forwarded-proto, x-forwarded-for HTTP upstream target with __ns_preview_transport=header and no bearer token in the URL.
"https://3000-s-public.nullspace.dev/?__ns_preview_transport=header"
WebSocket upstream target with __ns_preview_transport=header and no bearer token in the URL.
"wss://3000-s-public.nullspace.dev/?__ns_preview_transport=header"
Header token scoped to HTTP proxy traffic. Send as x-nullspace-preview-proxy-token.
Header token scoped to WebSocket proxy traffic. Send as x-nullspace-preview-proxy-token.
Whether this sandbox also requires the private traffic access header.
Header name for private traffic access when required. The secret value is not returned here.
x-nullspace-traffic-access-token