***

title: get_url_scheme
slug: /reference/python/agents/configuration/security-config/get-url-scheme
description: Get the URL scheme based on SSL configuration.
max-toc-depth: 3
---------------------

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

Get the URL scheme based on SSL configuration.

## **Returns**

`str` -- `"https"` if SSL is enabled, `"http"` otherwise.

## **Example**

```python {4}
from signalwire.core.security_config import SecurityConfig

security = SecurityConfig()
scheme = security.get_url_scheme()

print(f"URL scheme: {scheme}")  # "http" (default) or "https"
```