# Use the LocalPipe API in Clay

> Call the LocalPipe search and enrichment endpoints from a Clay HTTP Request action, with a webhook source for results and the row ID passthrough.
>
> Part of the LocalPipe API reference: https://www.localpipe.io/docs/clay (full reference in one file: https://www.localpipe.io/localpipe-api-docs.md, categories CSV: https://www.localpipe.io/localpipe-business-categories.csv)

# Clay Integration Example

Use an **HTTP Request** action in Clay with a `callback_url` pointing to a Webhook source:

> ⚠️ **Important:** In Clay, all values in the request body **must be wrapped in parentheses** — even when referencing direct column values. For example, use `(/Company Name)` instead of `/Company Name`. Without parentheses, Clay will send the raw text instead of the resolved column value.

**Maps Search:**
```json
{
  "query": "(/keyword)",
  "location": "(/city), (/state)",
  "limit": 500,
  "filters": { "has_website": true, "min_rating": 3.5 },
  "callback_url": "https://your-clay-webhook-url"
}
```

**Enrichment:**
```json
{
  "business_name": "(/company_name)",
  "business_website": "(/website)",
  "want_email": true,
  "want_general_email": false,
  "general_email_fallback_only": false,
  "clay_row_id": "(/_row_id)",
  "callback_url": "https://your-clay-webhook-url"
}
```
