Public
Like
1
Enrich-New-User
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: v71View latest version
This file has everything you need:
newUserWelcomeEmailendpoint - receives data from ClerkclayEnrichmentWebhookendpoint - receives enriched data from Clay
-
CLAY_WEBHOOK_URL =
https://api.clay.com/v3/sources/webhook/pull-in-data-from-a-webhook-4f3ee61f-eba3-4d06-8f97-e7d5e9a5827d(This is the webhook URL from Clay you just copied) -
CLERK_SECRET_KEY = Your Clerk webhook secret
-
DISCORD_WEBHOOK = Your Discord webhook URL
-
CLAY_WEBHOOK_SECRET = (Optional) A secret for Clay to authenticate with
The file now uses a router, so your endpoints will be:
- Clerk webhook:
https://[your-val-username]-enriched-main.val.run/newUserWelcomeEmail - Clay webhook:
https://[your-val-username]-enriched-main.val.run/clayEnrichmentWebhook
Add an HTTP API column at the end of your table to send enriched data to your clayEnrichmentWebhook endpoint.