Venue Endpoints

Get Venue Details

GET /api/v1/venue

Retrieve comprehensive information about your venue including location, features, ratings, and images.

PHP (GuzzleHttp)

$client = new \GuzzleHttp\Client([
		'base_uri' => 'https://api_eu.grabatable.app',
		'headers' => [
				'X-API-Key' => env('GRABATABLE_API_VENUE_SECRET'),
				'Accept' => 'application/json',
		],
]);

$response = $client->get('/api/v1/venue');
$venue = json_decode($response->getBody(), true);

JavaScript (Fetch)

const response = await fetch('https://api_eu.grabatable.app/api/v1/venue', {
	headers: {
		'X-API-Key': process.env.GRABATABLE_API_VENUE_SECRET,
		'Accept': 'application/json',
	}
});

const data = await response.json();

Python (Requests)

import requests
import os

response = requests.get(
		'https://api_eu.grabatable.app/api/v1/venue',
		headers={
				'X-API-Key': os.environ.get('GRABATABLE_API_VENUE_SECRET'),
				'Accept': 'application/json'
		}
)
venue = response.json()

cURL

curl -X GET https://api_eu.grabatable.app/api/v1/venue \
	-H "X-API-Key: your_secret_key" \
	-H "Accept: application/json"

Get Tables

GET /api/v1/tables

List all tables configured for your venue with capacity and availability status.

Example Response

{
	"data": [
		{
			"id": 1,
			"name": "Table 1",
			"capacity": 4,
			"min_capacity": 2,
			"is_active": true
		}
	]
}

PHP Example

$response = $client->get('/api/v1/tables');
$tables = json_decode($response->getBody(), true);

JavaScript Example

const response = await fetch('https://api_eu.grabatable.app/api/v1/tables', {
	headers: {
		'X-API-Key': process.env.GRABATABLE_API_VENUE_SECRET,
		'Accept': 'application/json',
	}
});

const tables = await response.json();
×