split API config into URL and endpoint