Public
Like
1
clay-api-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.
Viewing readonly version of main branch: v50View latest version
Setup your own API / SDK to enrich data with Clay.
-
Create workbook using this Clay template.
- Or, you can use any existing Clay workbook with a 1)
Webhook column
and 2)HTTP API
column
- Or, you can use any existing Clay workbook with a 1)
-
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 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);