> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# manual_set_proxy_url

> Manually set the proxy URL base for webhook callbacks.

[ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base

Manually set the proxy URL base used when constructing webhook callback URLs in the
SWML document. Use this when your agent is behind a reverse proxy, tunnel, or load
balancer and the auto-detected URL is incorrect.

You can also set the `SWML_PROXY_URL_BASE` environment variable for the same effect
without calling this method.

## **Parameters**

The base URL to use for webhooks (e.g., `"https://abc123.ngrok.io"`). Trailing
slashes are automatically stripped.

## **Returns**

[`AgentBase`][ref-agentbase] -- Returns self for method chaining.

## **Example**

```python {5}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support")
agent.set_prompt_text("You are a helpful assistant.")
agent.manual_set_proxy_url("https://abc123.ngrok.io")
agent.serve()
```