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: v69View latest version
- For Clerk:
https://[your-val-id].web.val.run/newUserSignup - For Clay:
https://[your-val-id].web.val.run/clayEnrichmentWebhook
DISCORD_WEBHOOK- Your Discord webhook URL
curl 'https://[your-val-id].web.val.run/newUserSignup' \ -X POST \ -H 'Content-Type: application/json' \ -d '{"email":"test@example.com"}'
curl 'https://[your-val-id].web.val.run/clayEnrichmentWebhook' \ -X POST \ -H 'Content-Type: application/json' \ -d '{"email":"test@example.com","Name":"Test User","Title":"Developer","Org":"Test Corp"}'
-
Your webhook URL (for receiving data) is already set:
https://api.clay.com/v3/sources/webhook/pull-in-data-from-a-webhook-4f3ee6ff-eba3-4d06-8f97-e7d5e9a5827d -
In the HTTP API column at the end of your table:
- Method: POST
- Endpoint:
https://[your-val-id].web.val.run/clayEnrichmentWebhook - Headers: Content-Type: application/json
- Body:
{ "email": "{{email}}", "Name": "{{Name}}", "Title": "{{Title}}", "Org": "{{Org}}" }
- User signs up → Clerk webhook → Your Val's
/newUserSignup - Your Val → Clay webhook (the URL you provided)
- Clay enriches the data
- Clay → Your Val's
/clayEnrichmentWebhook - Your Val → Discord notification