# Toasttab — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for restaurants on ToastTab.com by location and keyword. Retrieve restaurant profiles, contact details, hours, and full menus — including item names, prices, descriptions, and customization options.

**Category:** Food & Dining | **Website:** [toasttab.com/](https://toasttab.com/) | **Docs:** [parse.bot/marketplace/3fcc5b1a-45d2-4db0-8e86-148a7c6ef982/toasttab-com-api](https://parse.bot/marketplace/3fcc5b1a-45d2-4db0-8e86-148a7c6ef982/toasttab-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-toasttab-com-api-3fcc5b1a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_menu_items

Get the full menu for a restaurant including categories and items with prices. Supports lookup by restaurant GUID directly or by slug (which resolves the GUID internally). At least one of guid or slug must be provided. Setting respectAvailability to false returns the full menu regardless of current operating hours.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `guid` | string | No | The restaurant's unique GUID from search_restaurants results |
| `slug` | string | No | The restaurant's short URL identifier, used as a fallback when guid is not provided |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-toasttab-com-api-3fcc5b1a/get_menu_items \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"guid":"<string>","slug":"<string>"}'
```

### get_restaurant_details

Get full details for a specific restaurant by its slug. Returns comprehensive information including name, description, location, schedule, cuisine type, and configuration options. The slug is obtained from search_restaurants results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | The restaurant's short URL identifier from search_restaurants results (e.g. 'bond-45-ny-221-w-46th-st') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-toasttab-com-api-3fcc5b1a/get_restaurant_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### search_restaurants

Search for restaurants by geographic coordinates and optional query string. Returns up to 20 nearby restaurants with basic info including name, cuisine, slug, and location. Results are ordered by proximity to the specified coordinates.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `latitude` | number | Yes | Latitude of the search center |
| `longitude` | number | Yes | Longitude of the search center |
| `query` | string | No | Optional keyword to filter restaurants by name or cuisine |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-toasttab-com-api-3fcc5b1a/search_restaurants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"latitude":"<number>","longitude":"<number>","query":"<string>"}'
```
