# Bedshed — 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 mattresses and bedroom furniture, locate Bedshed stores near you, and access detailed product information including specs and pricing from Australia's leading bed retailer. Find exactly what you need and discover where to shop with real-time store and product data.

**Category:** E-commerce | **Website:** [www.bedshed.com.au/mattress-selector](https://www.bedshed.com.au/mattress-selector) | **Docs:** [parse.bot/marketplace/debb0b0b-129c-4bad-ba89-4bd6afd0f930/bedshed-com-au-api](https://parse.bot/marketplace/debb0b0b-129c-4bad-ba89-4bd6afd0f930/bedshed-com-au-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/bedshed/`
**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

### Find stores

Find Bedshed retail stores by Australian postcode or state. Results are sorted by distance when searching by postcode.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `postcode` | string | No | Australian postcode to search near (e.g. '2000', '6000'). Returns stores sorted by distance from this postcode. |
| `state` | string | No | Australian state abbreviation. Accepts: WA, NSW, QLD, VIC, ACT. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/bedshed/find-stores \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"postcode":"<string>","state":"<string>"}'
```

### Get product details

Get detailed product information by SKU, including description, pricing, available sizes, firmness options, images, and child product variants.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU identifier (e.g. '50097', '50085'). Available from search_products results. |

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

### Search products

Search and filter products from the Bedshed catalog. Supports filtering by category, brand, size, and product type. Returns paginated results with available filter aggregations.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `brand` | string | No | Brand filter. Known values include: Dreamsense, Drift, Insignia, Kingsdown, Sealy, Sleepmaker, TEMPUR. |
| `category` | string | No | Product category filter. Known values include: Mattresses & Bases, Bed Frames, Custom Bed Frames, Bedroom Furniture, Kids Bedroom, Manchester, Clearance. |
| `limit` | integer | No | Number of products per page. |
| `page` | integer | No | Page number for pagination. |
| `product_type` | string | No | Product type filter. Known values include: Adjustable Base, Base, Mattress, Trundle. |
| `query` | string | No | Free-text search query (e.g. 'queen mattress'). When omitted, returns all products matching the filters. |
| `size` | string | No | Size filter. Known values include: Single, Single Long, King Single, Double, Queen, King, Split King, Super King. |
| `sorting` | string | No | Sort order. Accepts: featured, max_saving_percentage, name_asc, name_desc, highest_price, lowest_price, express_shipping, relevance. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/bedshed/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"brand":"<string>","category":"<string>","limit":"<integer>","page":"<integer>","product_type":"<string>","query":"<string>","size":"<string>","sorting":"<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.