`settings.apiUrl` may be undefined and then we use the default value.