menu 8 Menu Overview $site->apiUrl() Returns the url to the api endpoint $site->apiUrl(bool $relative = false): string Parameters Name Type Default Description $relative bool false Return type string Source code kirby/src/Cms/Site.php#L161