***

title: get_full_url
slug: /reference/python/agents/agent-base/get-full-url
description: Get the full URL for this agent's endpoint, including host, port, and route.
max-toc-depth: 3
---------------------

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

[manual-set-proxy-url]: /docs/server-sdks/reference/python/agents/agent-base/manual-set-proxy-url

Get the full URL for this agent's endpoint. The URL is constructed from the agent's
host, port, and route. In serverless environments, the URL is derived from
platform-specific environment variables. When behind a proxy, the
`SWML_PROXY_URL_BASE` environment variable or
[`manual_set_proxy_url()`][manual-set-proxy-url]
takes precedence.

## **Parameters**

<ParamField path="include_auth" type="bool" default="False" toc={true}>
  Whether to embed Basic Auth credentials in the URL (e.g.,
  `https://user:pass@host:port/route`).
</ParamField>

## **Returns**

`str` -- The fully constructed URL string.

## **Example**

```python {5,8}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support", port=3000)
agent.set_prompt_text("You are a helpful assistant.")
url = agent.get_full_url()
print(url)  # http://0.0.0.0:3000/support

url_with_auth = agent.get_full_url(include_auth=True)
print(url_with_auth)  # http://user:pass@0.0.0.0:3000/support
```