baseUrl

fun baseUrl(url: String)

Convenience function to set the base URL for a self-hosted instance.

Equivalent to baseUrl = BaseUrl.SelfHosted(url). The default /api prefix will be appended automatically.

Parameters

url

The base URL string (e.g. "https://umami.my-domain.com").


The base URL of the Umami instance. Defaults to BaseUrl.Cloud (https://api.umami.is/v1/).

For self-hosted instances, use BaseUrl.SelfHosted:

baseUrl = BaseUrl.SelfHosted("https://umami.my-domain.com")