Get Provider Status
**π Multi-Provider Status & Health Monitoring**
Get comprehensive status information for all booking providers configured for a specific restaurant. This endpoint provides real-time health checks, performance metrics, and operational status.
## π **Provider Overview**
### **Supported Providers**
- π **OpenTable** - Direct API integration with instant confirmations
- π **VAPI AI Phone Calling** - VAPI-powered automated restaurant calls
- πͺ **TableCheck** - Platform integration for wider restaurant network
- π **Internal System** - Restaurant's proprietary booking system
### **Health Metrics**
- **Response Time**: Average API response time over last 24 hours
- **Success Rate**: Successful bookings vs attempts (%)
- **Error Count**: Recent failures and error types
- **Last Error**: Most recent error message for debugging
- **Bookings Handled**: Total bookings processed by each provider
## π― **Use Cases**
### **Restaurant Operations**
- **Provider Selection**: Choose best performing provider for bookings
- **Troubleshooting**: Identify and resolve provider issues
- **Performance Monitoring**: Track provider reliability and speed
- **Capacity Planning**: Understand which providers handle peak loads
### **Customer Experience**
- **Fallback Strategy**: Automatic provider switching on failures
- **Optimal Routing**: Route bookings to fastest/most reliable provider
- **Transparency**: Show customers which booking method will be used
### **Business Intelligence**
- **Provider ROI**: Analyze which providers generate most bookings
- **Cost Optimization**: Compare provider costs vs performance
- **Service Level Agreements**: Monitor provider SLA compliance
## π **Status Indicators**
### **Health Status**
- **π’ Healthy**: Provider is operational and responding normally
- **π‘ Degraded**: Provider experiencing issues but still functional
- **π΄ Unhealthy**: Provider is down or not responding
- **β« Disabled**: Provider is intentionally disabled for this restaurant
### **Performance Metrics**
- **Response Time**: < 2s = Excellent, 2-5s = Good, > 5s = Poor
- **Success Rate**: > 95% = Excellent, 85-95% = Good, < 85% = Poor
- **Error Rate**: < 1% = Excellent, 1-5% = Acceptable, > 5% = Concerning
## π **Real-Time Monitoring**
This endpoint performs live health checks when called, ensuring you get the most current status information. For high-frequency monitoring, consider the summary endpoint which uses cached data.
## π **Related Operations**
- **Provider Configuration**: PUT /providers/{restaurantId}/config
- **Priority Management**: GET/PUT /providers/{restaurantId}/priority
- **Health Monitoring**: GET /providers/health (global status)
- **Performance Analytics**: GET /management/{restaurantId}/analytics
