Split ugly api_call in Endpoint to separate methods.