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: v22View 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
<<<<<<< main 7. Try it out: click Run in demo.ts
- 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]/setup-clay-proxy/sdk.ts";
const result = await clay({
email: "charmainekmlee@gmail.com"
});
console.log(result);
main