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: v25View latest version
Setup your own API / SDK to enrich data with Clay.
-
Remix this val
-
Get the webhook URL from your Clay table's
Webhook column
, update CLAY_WEBHOOK_URL in Environment Variables -
Update the HTTP API endpoint
- Copy the HTTP endpoint from
main.tsx
in this val - Edit the
HTTP API
column in Clay to point to your val's HTTP URL +/clay-webhook
- Copy the HTTP endpoint from
-
Test it with one of the examples below!
// 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);