setup-clay-proxy-2
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v2View latest version
Setup your own API / SDK to enrich data with Clay.
-
Remix this val
-
Set up a Clay workbook with both a
Webhook column
and anHTTP API
column (or use this template) -
Copy your Clay workbook's Webhook column URL
-
Set that as CLAY_WEBHOOK_URL in this val's env variables
-
Copy main.tsx's HTTP endpoint URL
-
Paste that in the
HTTP API
column in Clay, with/clay-webhook
on the end of it -
Also paste that in
CLAY_API_URL =
in sdk.ts
// Update this to the module URL of your sdk.ts file
import { clay } from "https://esm.town/v/[YOUR_USERNAME]/clay-proxy/sdk.ts";
const result = await clay({
email: "charmainekmlee@gmail.com",
});
console.log(result);