# Matterhackers — 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 and browse MatterHackers' 3D printing filament catalog to find products by material type, view detailed specifications, pricing, and discover available collections. Get comprehensive product information to compare filaments and make informed purchasing decisions.

**Category:** E-commerce | **Website:** [matterhackers.com/](https://matterhackers.com/) | **Docs:** [parse.bot/marketplace/882e3441-6a95-4a2f-94c8-ad30e13eb5e1/matterhackers-com-api](https://parse.bot/marketplace/882e3441-6a95-4a2f-94c8-ad30e13eb5e1/matterhackers-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/matterhackers/`
**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 product details

Get detailed information for a specific product by SKU ID, including color variants, pricing, availability, and technical specifications. Returns a single product's full detail page data. The SKU ID can be obtained from search_products or list_filaments results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku_id` | string | Yes | Product SKU ID (e.g. 'M3MY2VQG', 'MY6CYEZM'). Obtain from search_products or list_filaments results. |

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

### List filaments

List filament products with optional material filtering and pagination. When material is provided, lists products from that material's collection page. The material value should match a collection slug from list_material_collections (e.g. 'PLA', 'ABS', 'PET', 'NylonX'). Omitting material returns all filaments from the main filament category.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `material` | string | No | Material collection slug to filter by (e.g. 'PLA', 'ABS', 'PET', 'NylonX', 'mh-build-series'). Values correspond to the slug portion of collection URLs from list_material_collections. Omitting returns all filaments. |
| `page` | integer | No | Page number for pagination. |

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

### List material collections

List all available material collections and categories from the MatterHackers store navigation. Returns collection names and URLs. The slug portion of a collection URL (e.g. 'PLA' from '/store/c/PLA') can be used with the list_filaments material parameter.

**Estimated cost:** Metered

_No parameters required._

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

### Search products

Full-text search across all MatterHackers store products by keyword. Returns product summaries matching the query. Supports multi-word queries. Results are limited to the first page returned by the site (typically up to 20 items).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword or phrase (e.g. 'PLA', 'Bambu Lab', 'resin'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/matterhackers/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<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.