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

# 🍽️ Restaurant Booking Service - Overview

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

**Welcome to the Restaurant Booking API!** 🎉

This comprehensive booking management system provides everything you need to handle restaurant reservations efficiently and reliably.

## 🚀 **Core Capabilities**

### **Multi-Provider Booking System**

* 📞 **VAPI AI Phone Calling** - Automated restaurant phone calls for bookings
* 🔗 **OpenTable Integration** - Direct integration with OpenTable's reservation network
* ⚡ **Instant Confirmations** - Real-time booking confirmations
* 📊 **Comprehensive Coverage** - Access to multiple booking networks

### **Real-Time Features**

* ⚡ **Instant Availability** - Real-time table availability checking
* ✅ **Live Confirmations** - Immediate booking confirmations when possible
* 📱 **Webhook Support** - Real-time updates via webhooks
* 🔔 **Auto Notifications** - Automated customer and restaurant notifications

### **Business Intelligence**

* 📊 **Advanced Analytics** - Comprehensive booking statistics and trends
* 💰 **Revenue Tracking** - Estimated revenue impact and financial insights
* 📈 **Performance Metrics** - Provider success rates and response times
* 📋 **Export Tools** - Data export in CSV, XLSX, and JSON formats

## 🎯 **API Endpoints Overview**

### **📝 Booking Operations** (/bookings)

* Create new reservations with OpenTable integration
* Retrieve, update, and cancel existing bookings
* Bulk operations for restaurant management
* User and restaurant booking history

### **📅 Availability Checking** (/availability)

* Real-time table availability queries
* Bulk availability checking for multiple dates
* Capacity and timing information

### **🔌 Provider Management** (/providers)

* OpenTable integration health monitoring
* Performance metrics and analytics

### **🔧 Management & Analytics** (/management)

* Comprehensive booking analytics
* Data export and reporting tools
* Restaurant configuration management
* Operational insights and trends

## 🛡️ **Enterprise Features**

* **High Availability**: Built-in redundancy and failover
* **Scalability**: Handles thousands of concurrent bookings
* **Security**: OAuth 2.0, rate limiting, and data encryption
* **Monitoring**: Comprehensive logging and health checks
* **Integration**: RESTful API with webhook support

## 🔗 **Quick Start**

1. **Check Service Health**: `GET /health`
2. **Browse Documentation**: Visit `/swagger` for interactive API docs
3. **Check Availability**: `GET /availability/{restaurantId}?date=2024-02-15&partySize=4`
4. **Make a Booking**: `POST /bookings` with reservation details

## 🆘 **Support & Documentation**

* 📚 **API Documentation**: Available at `/swagger`
* 🔍 **Health Monitoring**: Check `/health` for system status
* 📞 **Provider Status**: Monitor at `/providers/health`
* 📊 **Analytics**: Access insights via `/management/{restaurantId}/analytics`

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

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

Service information retrieved successfully

- `message` (string, required)
- `version` (string, required)
- `status` (enum, required)
  - Allowed values: `running`, `starting`, `maintenance`
- `features` (list of string, required) — List of available service features
- `endpoints` (GetResponsesContentApplicationJsonSchemaEndpoints, required) — Available API endpoint categories
- `timestamp` (datetime, required) — Current server timestamp

## Errors

### 503 Service Unavailable Error

Service temporarily unavailable

- `message` (string, optional)
- `status` (string, optional)
- `timestamp` (datetime, optional)

## Types

### GetResponsesContentApplicationJsonSchemaEndpoints

Available API endpoint categories

- `bookings` (string, optional) — Core booking operations
- `availability` (string, optional) — Availability checking
- `providers` (string, optional) — Provider management
- `management` (string, optional) — Analytics and administration
- `docs` (string, optional) — Interactive API documentation

## Examples

**Response**

```json
{
  "message": "🍽️ Restaurant Booking Service",
  "version": "1.0.0",
  "status": "running",
  "features": [
    "Multi-provider booking system",
    "Real-time availability checking",
    "AI-powered phone booking",
    "OpenTable integration",
    "TableCheck integration",
    "Smart provider fallback",
    "Booking analytics",
    "Automated confirmations"
  ],
  "endpoints": {
    "bookings": "/bookings",
    "availability": "/availability",
    "providers": "/providers",
    "management": "/management",
    "docs": "/swagger"
  },
  "timestamp": "2024-02-15T10:30:00.000Z"
}
```

**SDK Code**

```python Service Overview
import requests

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

response = requests.get(url)

print(response.json())
```

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

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

func main() {

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

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

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

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

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Service Overview
using RestSharp;

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

```swift Service Overview
import Foundation

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