> 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.

# Global Provider Health Check

GET https://api.etera.dev/restaurant/booking/providers/health


        **🏥 Global Provider Health Monitoring**

        Check the health status of all booking providers across the entire platform. This endpoint provides a system-wide view of provider performance and availability.

        ## 🔍 **Health Metrics**

        ### **System-Wide Status**
        - **Overall Health**: Whether the booking system is operational
        - **Provider Availability**: How many providers are currently working
        - **Performance Trends**: Response times and success rates across providers

        ### **Individual Provider Status**
        - **Healthy**: Provider is responding and performing well
        - **Degraded**: Provider is working but with reduced performance
        - **Offline**: Provider is not responding or severely impaired

        ## 🎯 **Use Cases**

        - **Operations Dashboard**: Monitor overall system health
        - **Incident Response**: Quickly identify system-wide issues
        - **Capacity Planning**: Understand overall booking capacity
        - **SLA Monitoring**: Track service level agreement compliance

        ## 📊 **Response Details**

        Returns comprehensive health information for all providers, including performance metrics and current status.
      

Reference: https://docs.etera.dev/restaurant/booking/restaurant-booking-api/providers/get-providers-health

## 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)

## Response

### 200

Global health check completed

- `success` (boolean, optional)
- `overall` (boolean, optional) — Overall system health
- `providers` (list of ProvidersHealthGetResponsesContentApplicationJsonSchemaProvidersItems, optional)
- `summary` (ProvidersHealthGetResponsesContentApplicationJsonSchemaSummary, optional)
- `timestamp` (datetime, optional)

## Types

### ProvidersHealthGetResponsesContentApplicationJsonSchemaProvidersItems

- `type` (string, optional)
- `name` (string, optional)
- `healthy` (boolean, optional)
- `responseTime` (double, optional)
- `successRate` (double, optional)
- `errorCount` (double, optional)
- `lastCheck` (datetime, optional)

### ProvidersHealthGetResponsesContentApplicationJsonSchemaSummary

- `total` (double, optional)
- `healthy` (double, optional)
- `degraded` (double, optional)
- `offline` (double, optional)

## Examples

### All Systems Operational

**Response**

```json
{
  "success": true,
  "overall": true,
  "providers": [
    {
      "type": "opentable",
      "name": "OpenTable",
      "healthy": true,
      "responseTime": 340,
      "successRate": 0.99,
      "errorCount": 0,
      "lastCheck": "2024-02-15T10:30:00Z"
    },
    {
      "type": "vapi",
      "name": "VAPI AI Calling",
      "healthy": true,
      "responseTime": 8500,
      "successRate": 0.87,
      "errorCount": 2,
      "lastCheck": "2024-02-15T10:30:00Z"
    }
  ],
  "summary": {
    "total": 2,
    "healthy": 2,
    "degraded": 0,
    "offline": 0
  },
  "timestamp": "2024-02-15T10:30:00Z"
}
```

**SDK Code**

```python All Systems Operational
import requests

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

response = requests.get(url)

print(response.json())
```

```javascript All Systems Operational
const url = 'https://api.etera.dev/restaurant/booking/providers/health';
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 Systems Operational
package main

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

func main() {

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

	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 Systems Operational
require 'uri'
require 'net/http'

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

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 Systems Operational
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

```php All Systems Operational
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp All Systems Operational
using RestSharp;

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

```swift All Systems Operational
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.etera.dev/restaurant/booking/providers/health")! 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 Performance

**Response**

```json
{
  "success": true,
  "overall": false,
  "providers": [
    {
      "type": "opentable",
      "name": "OpenTable",
      "healthy": true,
      "responseTime": 450,
      "successRate": 0.98,
      "errorCount": 1,
      "lastCheck": "2024-02-15T10:30:00Z"
    },
    {
      "type": "vapi",
      "name": "VAPI AI Calling",
      "healthy": false,
      "responseTime": 15000,
      "successRate": 0.45,
      "errorCount": 23,
      "lastCheck": "2024-02-15T10:30:00Z"
    }
  ],
  "summary": {
    "total": 2,
    "healthy": 1,
    "degraded": 1,
    "offline": 0
  },
  "timestamp": "2024-02-15T10:30:00Z"
}
```

**SDK Code**

```python Degraded Performance
import requests

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

response = requests.get(url)

print(response.json())
```

```javascript Degraded Performance
const url = 'https://api.etera.dev/restaurant/booking/providers/health';
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 Performance
package main

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

func main() {

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

	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 Performance
require 'uri'
require 'net/http'

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

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 Performance
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Degraded Performance
using RestSharp;

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

```swift Degraded Performance
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.etera.dev/restaurant/booking/providers/health")! 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()
```