> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.etera.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.etera.dev/_mcp/server.

# Get Provider Status

GET https://api.etera.dev/restaurant/booking/providers/{restaurantId}/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

Reference: https://docs.etera.dev/restaurant/booking/restaurant-booking-api/providers/get-providers-by-restaurant-id-status

## Servers

- `https://api.etera.dev/restaurant/booking` (Production, default)
- `https://api-stage.etera.dev/restaurant/booking` (Staging)
- `https://api-dev.etera.dev/restaurant/booking` (Development)

## Request

### Path parameters

- `restaurantId` (string, required) — Unique identifier for the restaurant

## Response

### 200

Provider status retrieved successfully

- `success` (boolean, optional)
- `restaurantId` (string, optional)
- `providers` (list of ProvidersRestaurantIdStatusGetResponsesContentApplicationJsonSchemaProvidersItems, optional)
- `healthy` (boolean, optional) — Overall system health
- `totalProviders` (double, optional)
- `healthySummary` (ProvidersRestaurantIdStatusGetResponsesContentApplicationJsonSchemaHealthySummary, optional)
- `lastChecked` (datetime, optional)

## Errors

### 404 Not Found Error

Restaurant not found

- `success` (boolean, optional)
- `error` (string, optional)
- `code` (string, optional)

## Types

### ProvidersRestaurantIdStatusGetResponsesContentApplicationJsonSchemaProvidersItems

- `type` (enum, optional)
  - Allowed values: `opentable`, `vapi`, `tablecheck`
- `name` (string, optional)
- `enabled` (boolean, optional)
- `healthy` (boolean, optional)
- `lastCheck` (datetime, optional)
- `responseTime` (double, optional) — Response time in milliseconds
- `errorCount` (double, optional)
- `lastError` (string, optional)
- `successRate` (double, optional) — Success rate from 0 to 1
- `bookingsHandled` (double, optional)

### ProvidersRestaurantIdStatusGetResponsesContentApplicationJsonSchemaHealthySummary

- `total` (double, optional)
- `healthy` (double, optional)
- `enabled` (double, optional)
- `operational` (double, optional)

## Examples

### All Providers Healthy

**Response**

```json
{
  "success": true,
  "restaurantId": "rest_abc123",
  "providers": [
    {
      "type": "opentable",
      "name": "OpenTable",
      "enabled": true,
      "healthy": true,
      "lastCheck": "2024-02-15T10:30:00Z",
      "responseTime": 340,
      "errorCount": 0,
      "successRate": 0.99,
      "bookingsHandled": 2450
    },
    {
      "type": "vapi",
      "name": "VAPI AI Calling",
      "enabled": true,
      "healthy": true,
      "lastCheck": "2024-02-15T10:30:00Z",
      "responseTime": 8500,
      "errorCount": 3,
      "lastError": "Restaurant busy signal",
      "successRate": 0.85,
      "bookingsHandled": 180
    },
    {
      "type": "tablecheck",
      "name": "TableCheck",
      "enabled": true,
      "healthy": true,
      "lastCheck": "2024-02-15T10:30:00Z",
      "responseTime": 650,
      "errorCount": 1,
      "successRate": 0.92,
      "bookingsHandled": 340
    }
  ],
  "healthy": true,
  "totalProviders": 3,
  "healthySummary": {
    "total": 3,
    "healthy": 3,
    "enabled": 3,
    "operational": 3
  },
  "lastChecked": "2024-02-15T10:30:00Z"
}
```

**SDK Code**

```python All Providers Healthy
import requests

url = "https://api.etera.dev/restaurant/booking/providers/rest_abc123/status"

response = requests.get(url)

print(response.json())
```

```javascript All Providers Healthy
const url = 'https://api.etera.dev/restaurant/booking/providers/rest_abc123/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go All Providers Healthy
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.etera.dev/restaurant/booking/providers/rest_abc123/status"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby All Providers Healthy
require 'uri'
require 'net/http'

url = URI("https://api.etera.dev/restaurant/booking/providers/rest_abc123/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java All Providers Healthy
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.etera.dev/restaurant/booking/providers/rest_abc123/status")
  .asString();
```

```php All Providers Healthy
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.etera.dev/restaurant/booking/providers/rest_abc123/status');

echo $response->getBody();
```

```csharp All Providers Healthy
using RestSharp;

var client = new RestClient("https://api.etera.dev/restaurant/booking/providers/rest_abc123/status");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift All Providers Healthy
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.etera.dev/restaurant/booking/providers/rest_abc123/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Degraded Service

**Response**

```json
{
  "success": true,
  "restaurantId": "rest_abc123",
  "providers": [
    {
      "type": "opentable",
      "name": "OpenTable",
      "enabled": true,
      "healthy": true,
      "lastCheck": "2024-02-15T10:30:00Z",
      "responseTime": 450,
      "errorCount": 0,
      "successRate": 0.98,
      "bookingsHandled": 1200
    },
    {
      "type": "vapi",
      "name": "VAPI AI Calling",
      "enabled": true,
      "healthy": false,
      "lastCheck": "2024-02-15T10:30:00Z",
      "responseTime": 15000,
      "errorCount": 12,
      "lastError": "VAPI API rate limit exceeded",
      "successRate": 0.65,
      "bookingsHandled": 45
    }
  ],
  "healthy": true,
  "totalProviders": 2,
  "healthySummary": {
    "total": 2,
    "healthy": 1,
    "enabled": 2,
    "operational": 1
  },
  "lastChecked": "2024-02-15T10:30:00Z"
}
```

**SDK Code**

```python Degraded Service
import requests

url = "https://api.etera.dev/restaurant/booking/providers/rest_abc123/status"

response = requests.get(url)

print(response.json())
```

```javascript Degraded Service
const url = 'https://api.etera.dev/restaurant/booking/providers/rest_abc123/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Degraded Service
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.etera.dev/restaurant/booking/providers/rest_abc123/status"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Degraded Service
require 'uri'
require 'net/http'

url = URI("https://api.etera.dev/restaurant/booking/providers/rest_abc123/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java Degraded Service
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.etera.dev/restaurant/booking/providers/rest_abc123/status")
  .asString();
```

```php Degraded Service
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.etera.dev/restaurant/booking/providers/rest_abc123/status');

echo $response->getBody();
```

```csharp Degraded Service
using RestSharp;

var client = new RestClient("https://api.etera.dev/restaurant/booking/providers/rest_abc123/status");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift Degraded Service
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.etera.dev/restaurant/booking/providers/rest_abc123/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```