# Relay URLs

Source: https://prontaro.com/docs/outbound/relay/

When your runtime or no-code tool has no proxy settings, a Relay URL forwards calls to a target HTTPS API from your dedicated static IPv4 after a single base-URL swap.

Each Relay gives you a private `https://relay-<uuid>.prontaro.run` endpoint bound to one target API host. Paths, query strings, HTTP methods, and headers pass through intact—no `HTTP_PROXY` or SOCKS5 setup required.

## When to use Relay URLs

- **Edge runtimes without proxy settings.** Cloudflare Workers, Supabase Edge Functions, Vercel Edge, Deno Deploy, and Google Apps Script provide `fetch()` without HTTP CONNECT proxy support.
- **No-code and workflow platforms.** Zapier, Power Automate, Bubble, Retool Cloud, Airtable Scripts, and similar tools only accept a destination URL.
- **Minimal changes.** Swap the API base URL for your Relay URL — no proxy agent library or client rewrite needed.

> **TLS termination (decryption) on the Prontaro server**
>
> A Relay URL terminates (decrypts) TLS on the Prontaro server and opens a fresh encrypted HTTPS connection from your static IP to the target API. Request bodies and headers are never logged or stored on Prontaro servers.
>
> If your integration requires end-to-end TLS (no intermediate decryption) or mutual TLS (mTLS) with client certificates, use [HTTP & SOCKS5 proxy](https://prontaro.com/docs/outbound/proxy.md) or [`prontaro forward`](https://prontaro.com/docs/outbound/forward.md) instead.

## How it works

```text
Your app / Worker / Zapier
  ──(1. HTTPS to relay-3f9c2a7e-...prontaro.run/v1/charges)──▶
Prontaro node
  │ terminates TLS, checks optional access rules
  │ opens new HTTPS connection bound to 203.0.113.10
  ▼
Target API (https://api.example.com/v1/charges)
```

1. You create a Relay pointing at one target domain (for example, `api.example.com`). Prontaro issues a random `https://relay-<uuid>.prontaro.run` URL.
2. Your app sends normal HTTPS requests to that Relay URL with all original headers (`Authorization: Bearer ...`, `Content-Type`, etc.).
3. The Prontaro server forwards the HTTP/1.1 request over HTTPS (port `443`) to `https://api.example.com/...` from your dedicated static IPv4 and returns the upstream response directly.

## Quick setup

1. Open **IP addresses** in the [dashboard](https://my.prontaro.com/ips) and select your IP.
2. Click **Add relay address**.
3. Enter the target API domain or full HTTPS URL (for example, `api.example.com` or `https://api.example.com` — without port or path).
4. Copy the generated `https://relay-...prontaro.run` URL and paste it into Zapier, your Worker, or your app’s base URL environment variable.

IP addresses Relay address [Open in dashboard](https://my.prontaro.com/ips)

Test the endpoint by substituting only the base URL:

```bash
curl -fsS \
  -H "Authorization: Bearer tok_example_123" \
  "https://relay-3f9c2a7e-5b1d-4c8a-9e60-1d2b3c4d5e6f.prontaro.run/v1/status?env=prod"
```

## Protecting a Relay: IP allowlist and password

By default, the random `relay-<uuid>` hostname acts as the secret. The URL is never published, but anyone who learns it can call its target host through your IP. If a URL leaks, delete it in the dashboard and create a new one — deleted names are never reissued.

Optionally add a source IP allowlist (**From**) and password authentication:

1. Open the Relay on your IP page in the [dashboard](https://my.prontaro.com/ips) and switch to the **Access** tab.
2. Under **From**, add allowed client IPv4 addresses or CIDR blocks.
3. Optionally enable **Password** — the dashboard displays a ready-to-copy `Prontaro-Relay-Auth` header.

IP addresses Relay address Access [Open in dashboard](https://my.prontaro.com/ips)

> **Use Prontaro-Relay-Auth when your target API needs Authorization**
>
> When password auth is enabled on a Relay, send the Relay credentials in the `Prontaro-Relay-Auth: <login>:<password>` header. The Prontaro server verifies and strips that header before forwarding, leaving your target API’s `Authorization: Bearer ...` header untouched:
>
> ```bash
> curl -fsS \
>   -H "Prontaro-Relay-Auth: worker:s3cr3t..." \
>   -H "Authorization: Bearer tok_example_123" \
>   "https://relay-3f9c2a7e-5b1d-4c8a-9e60-1d2b3c4d5e6f.prontaro.run/v1/status"
> ```
>
> Standard HTTP Basic (`Authorization: Basic ...`) is also accepted when the target API does not use `Authorization`.

## Limits and notes

- **Single domain, HTTPS `:443` only.** Each Relay points to one hostname over port `443`. Bare IP addresses, custom ports, and path prefixes in the target setting are not supported (pass paths when calling the Relay URL).
- **HTTP/1.1 only.** Upstream HTTP/2, WebSocket (`Upgrade`), response caching, and automatic retries are not supported.
- **Redirects.** Same-host `Location` redirects stay on your Relay. External redirects (like CDN downloads) have their `Location` header stripped and a `Prontaro-Relay-Notice` header added — create a second Relay or fetch directly.
- **Cookies and response body links.** `Set-Cookie` `Domain` attributes and absolute URLs inside JSON or HTML response bodies are not rewritten.
- **Local and private networks blocked.** If the target domain resolves to a private or local network, Prontaro rejects the request.
- **Shared IP quotas.** Relays require Dedicated or Pro with an active IP and count toward the shared per-IP limit of proxy credentials and Relay URLs, outbound connections, and monthly traffic (see [Usage, limits & quotas](https://prontaro.com/docs/billing/limits.md)).

## FAQ

### Why doesn’t a new Relay respond immediately?

A new Relay starts working within a few seconds — retry the request.

### Can I attach a custom domain to a Relay URL?

No, Relays only use generated `relay-<uuid>` hostnames.

### What to check if a request via Relay doesn’t go through?

A DNS or TLS error means the Relay address is wrong — copy it again from the dashboard. If there is no record in [Logs](https://my.prontaro.com/journal), the request bypassed Relay: the program is calling the API directly. Refusals from the target API show up in Logs.

## Next steps

- [HTTP & SOCKS5 proxy](https://prontaro.com/docs/outbound/proxy.md) — outbound connections with end-to-end TLS or mutual TLS (mTLS).
- [Local port forwarding (prontaro forward)](https://prontaro.com/docs/outbound/forward.md) — direct TCP connections to databases and tools without proxy support.
- [Static IP for Cloudflare Workers](https://prontaro.com/docs/integrations/cloudflare-workers.md) — step-by-step Relay setup for edge runtimes (also see [Make & Zapier](https://prontaro.com/docs/integrations/make-zapier.md), [Supabase](https://prontaro.com/docs/integrations/supabase.md), and [Vercel](https://prontaro.com/docs/integrations/vercel.md)).
- [Usage, limits & quotas](https://prontaro.com/docs/billing/limits.md) — shared limits for proxy credentials and Relay URLs per IP, connections, and traffic.
