Allow to use custom URL for API endpoint