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: v31View latest version
Setup your own API / SDK to enrich data with Clay.
-
Remix this val
-
Set Environment Variable
- In Clay, get your webhook URL from the
Webhook column
- Copy the token into your val's env variables (in the left sidebar) as
CLAY_WEBHOOK_URL
- In Clay, get your webhook URL from the
-
Update the HTTP API endpoint in Clay
- Copy the HTTP endpoint from
main.tsx
in this val - Edit the
Send to HTTP
column in Clay to point to your val's HTTP URL +/clay-webhook
- Copy the HTTP endpoint from
-
Test it with the example below!
// NOTE: You need to update this line 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",
});
console.log(result);
email
- Required - Email address to enrichgithub_username
- Optional - GitHub usernamesource
- Optional - Data sourcerepo
- Optional - Repository name
person
- Namelinkedin
- LinkedIn URLcompany
- Company of employmentlinkedin_data
- LinkedIn profile datafunding
- Funding stagetotalFunding
- Total funding raisedemployeeCount
- Number of employees