# Slicelife — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 pizza restaurants across multiple cities, view detailed restaurant information, and browse complete menus to find exactly what you're looking for. Discover pizza spots in all available cities and get everything you need to make your ordering decision.

**Category:** Food & Dining | **Website:** [slicelife.com/](https://slicelife.com/) | **Docs:** [parse.bot/marketplace/c87ab248-b490-4236-bad2-cfd3bc3bded9/slicelife-com-api](https://parse.bot/marketplace/c87ab248-b490-4236-bad2-cfd3bc3bded9/slicelife-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/slicelife/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get all cities

Get a structured list of all states and cities available on Slice, extracted from the sitemap. Returns cities grouped by two-letter state code. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/slicelife/get-all-cities \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get restaurant details

Get full details for a single restaurant using its UUID. Returns delivery/pickup availability, estimated times, minimum orders, and contact information. The restaurant_id comes from the id field in search_restaurants results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `restaurant_id` | string | Yes | Restaurant UUID from search_restaurants results (e.g. '26e8cba3-c4e9-4245-9a55-b3b37862e5e9'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/slicelife/get-restaurant-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"restaurant_id":"<string>"}'
```

### Get restaurant menu

Get the full menu for a restaurant including categories, items with prices, descriptions, product types (sizes), and available add-ons with selections. The restaurant_id comes from the id field in search_restaurants results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `restaurant_id` | string | Yes | Restaurant UUID from search_restaurants results (e.g. '26e8cba3-c4e9-4245-9a55-b3b37862e5e9'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/slicelife/get-restaurant-menu \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"restaurant_id":"<string>"}'
```

### Search restaurants

Search for pizza restaurants near coordinates or an address. Returns a list of restaurants with delivery fees, ratings, and availability status. Use limit and offset for pagination. When using address, geocoding quality varies; providing latitude/longitude directly yields more reliable results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `address` | string | No | Address string for geocoding (e.g. 'Brooklyn, NY'). Used only if latitude/longitude are not provided. Geocoding quality varies for generic city names; prefer coordinates for precision. |
| `latitude` | number | No | Latitude of search center (e.g. 40.7128). If omitted along with longitude and address, defaults to New York City. |
| `limit` | integer | No | Maximum number of results to return. |
| `longitude` | number | No | Longitude of search center (e.g. -74.0060). If omitted along with latitude and address, defaults to New York City. |
| `offset` | integer | No | Pagination offset for results. |
| `radius` | integer | No | Search radius in miles. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/slicelife/search-restaurants \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"address":"<string>","latitude":"<number>","limit":"<integer>","longitude":"<number>","offset":"<integer>","radius":"<integer>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.