# DoorDash — 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 restaurants on DoorDash and view their menus, hours, and current promotions to find exactly what you're looking for. Get detailed information about any restaurant including pricing, availability, and active discounts across the US.

**Category:** Food & Dining | **Website:** [www.doordash.com/](https://www.doordash.com/) | **Docs:** [parse.bot/marketplace/56573c0c-c992-4c56-b09d-62df4b5892e3/doordash-com-api](https://parse.bot/marketplace/56573c0c-c992-4c56-b09d-62df4b5892e3/doordash-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/doordash/`
**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 restaurant

Get detailed restaurant information including full menu with prices, store and DoorDash operating hours, ratings, address, phone number, delivery/pickup availability, featured items, and active promotions/discounts. Uses the DoorDash GraphQL storepage feed API.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fulfillment_type` | string | No | Type of fulfillment: 'Delivery' or 'Pickup' |
| `menu_id` | string | No | Specific menu ID to load. If not provided, the default/current menu is returned. Available menu IDs can be found in the get_restaurant response under menu.available_menus. |
| `store_id` | string | Yes | DoorDash store ID (numeric). Can be found from list_restaurants results in the store_id field. |

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

### List restaurants

List restaurants available for delivery in a given city/location. Returns restaurant names, ratings, categories, delivery fees, estimated delivery times, and current promotions. Results are parsed from the DoorDash food delivery page for the specified location.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of restaurants to return |
| `location` | string | No | Location slug in format '{city}-{state}-restaurants' (e.g., 'new-york-ny-restaurants', 'los-angeles-ca-restaurants', 'chicago-il-restaurants') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/doordash/list-restaurants \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","location":"<string>"}'
```

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