API service and facade