FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
charmaine

charmaine

clay-api-proxy

Set up your own Clay proxy
Public
Like
1
clay-api-proxy
Home
Code
3
README.md
H
main.tsx
sdk.ts
Branches
1
Pull requests
Remixes
4
History
Environment variables
1
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/8/2025
Viewing readonly version of main branch: v25
View latest version
README.md

Clay API + SDK

Setup your own API / SDK to enrich data with Clay.

Clay setup

  1. Remix this val

  2. Get the webhook URL from your Clay table's Webhook column, update CLAY_WEBHOOK_URL in Environment Variables CleanShot 2025-08-08 at 13.23.47@2x.png

  3. 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 CleanShot 2025-08-08 at 13.26.50@2x.png
  4. Test it with one of the examples below!

Example usage

Enrich by Email

Create val
// 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);
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.