Clay API + SDK

Setup your own API / SDK to enrich data with Clay.

Clay setup

  1. Create workbook using this Clay template

  2. Remix this val

  3. Get your Clay workbook's webhook URL

    CleanShot 2025-08-08 at 13.23.47@2x.png

  4. Set that as CLAY_WEBHOOK_URL in this val's env variables

  5. Copy main.tsx's HTTP endpoint URL

  6. Paste that as in the HTTP API column in Clay, with /clay-webhook on the end of it

Enrich by Email

// Update this to the module URL of your sdk.ts file import { clay } from "https://esm.town/v/charmaine/clay-proxy/sdk.ts"; const result = await clay({ email: "charmainekmlee@gmail.com", source: "user_signup", }); console.log(result);