# Clay

Use Moleman as a column in Clay with Clay's **HTTP API** enrichment. This is a plain HTTP setup, not an official Clay integration.

## Set up a column

1. In your Clay table, add a column → **HTTP API**.
2. **Method:** `POST`. **Endpoint:** `https://moleman.io/api/v1/find-contacts`
3. **Headers:** `Authorization` = `Bearer mm_live_…` (your key), `Content-Type` = `application/json`
4. **Body** (insert your columns with `/`):

```json
{
  "rows": [{ "firstName": "{{First Name}}", "lastName": "{{Last Name}}", "website": "{{Website}}" }],
  "wait": 25
}
```

5. Run it on a few rows. Map the fields from the answer: `results[0].email` → Email, `results[0].result` → Moleman result.

With `"wait": 25` most rows come back finished. If `status` is still `running`, add a second HTTP API column: `GET https://moleman.io/api/v1/jobs/{{jobId}}` with the same header, and map `results[0].email` from that.

## Other columns

| Column | Endpoint | Body |
| --- | --- | --- |
| Business email | `POST /api/v1/find-contacts` | `{"action":"companyInbox","rows":[{"website":"{{Website}}"}],"wait":25}` |
| Verify an email | `POST /api/v1/verify` | `{"emails":["{{Email}}"],"wait":25}` → `results[0].result` |
| Summary + first line | `POST /api/v1/deep-search` | `{"rows":[{"company":"{{Company}}","website":"{{Website}}"}],"wait":25}` → `results[0].briefLine` |

All settings in one file: [clay-template.json](https://moleman.io/api/v1/clay-template.json).

## Tips

- Try it with your **test key** first: free, made-up results.
- One row per request is fine in Clay; stay under 120 requests a minute per key (Clay's rate setting).
- Only "Works" costs credits. Rows you ran in the last 30 days are free when you run them again.

