FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
charmaine
charmaineVoidZero
Find qualified leads within public GitHub repo commits
Public
Like
VoidZero
Home
Code
3
README.md
H
main.tsx
vite-contributor.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
3
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
7/23/2025
Viewing readonly version of main branch: v26
View latest version
README.md

Clay API via Val Town

Turn Clay into an API. Send data, get enriched results back.

Clay doesn't offer an API, but this val acts as one by sending data to Clay via webhook and receiving enriched results back via HTTP.

This example shows you how to input an email and see where the person works and the funding stage of their company.

Setup

  1. Copy the Clay template
  2. Remix this val
  3. Update CLAY_WEBHOOK_URL in Environment variables (get it from your Clay table's Webhook column)
  4. Update the HTTP API endpoint in the HTTP API column in Clay to point to your val's /enriched endpoint

Test it

Run test.ts to test with sample data:

const testData = { email: "steveykrouse@gmail.com" };

What you get

Input:

{"email": "steveykrouse@gmail.com"}

Output:

{ email: "steveykrouse@gmail.com", person: "Steve Krouse", Company: "Val Town", funding: "SEED", totalFunding: "$7 million" }

Now you can enrich any data programmatically inside and outside of Clay!

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.