Configure API endpoint