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: v9
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

  2. Remix this val

  3. Update CLAY_WEBHOOK_URL in Environment variables (get it from your Clay table's Webhook column) CleanShot 2025-08-08 at 13.23.47@2x.png

  4. Update the HTTP API endpoint in the HTTP API column in Clay to point to your val's /clay-webhook endpoint CleanShot 2025-08-08 at 13.26.50@2x.png

  5. Test it with one of the examples below!

Example usage

Enrich GitHub User

Create val
// NOTE: You need to set GITHUB_TOKEN as an environment variable to run this import { clay } from "https://esm.town/v/charmaine/clay-proxy/sdk.ts"; import { emailsFromGitHubUsername } from "https://esm.town/v/stevekrouse/github-user-email/index.ts"; // First get email from GitHub username const emails = await emailsFromGitHubUsername("charmaine"); const email = emails[0]; // Then enrich with Clay const result = await clay({ email, github_username: "charmaine", repo: "val-town/vt", source: "github_stargazer" }); console.log(result);

Enrich by Email

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

Input

  • email - Required - Email address to enrich
  • github_username - Optional - GitHub username
  • source - Optional - Data source
  • repo - Optional - Repository name

Output (if found)

  • person - Name
  • linkedin - LinkedIn URL
  • company - Company of employment
  • linkedin_data - LinkedIn profile data
  • funding - Funding stage
  • totalFunding - Total funding raised
  • employeeCount - Number of employees

API Endpoint

curl -X POST https://clayapidemo.val.run/enrich \ -H "Content-Type: application/json" \ -d '{"email": "user@example.com"}'
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.