Switch API endpoint