setup-clay-proxy
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.
main.tsx
https://stevekrouse--01988abfa7cc72c7998fe86869b4c3ff.web.val.run
Setup your own API / SDK to enrich data with Clay.
-
Create workbook using this Clay template
-
Remix this val
-
Get your Clay workbook's webhook URL
-
Set that as CLAY_WEBHOOK_URL in this val's env variables
-
Copy main.tsx's HTTP endpoint URL
-
Paste that as in the
HTTP API
column in Clay, with/clay-webhook
on the end of it
// 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);