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: v50
View latest version
README.md

Clay API + SDK

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

Clay setup

  1. Create workbook using this Clay template.

    • Or, you can use any existing Clay workbook with a 1) Webhook column and 2) HTTP API column
  2. Remix this val

  3. Get your Clay workbook's webhook URL

    CleanShot 2025-08-08 at 13.23.47@2x.png

  4. Set that as CLAY_WEBHOOK_URL in this val's env variables

  5. Copy main.tsx's HTTP endpoint URL

  6. Paste that in the HTTP API column in Clay, with /clay-webhook on the end of it

  7. Also paste that in CLAY_API_URL = in sdk.ts

Enrich by Email

Create val
// 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);
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.