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: v63View latest version
The URL in your screenshot needs the path added:
https://charmaine--d67630ca5dae11f0a5690224a6c84d84.web.val.run/clayEnrichmentWebhook
Send a test request to Clay's webhook URL using curl:
curl -X POST https://api.clay.com/v3/sources/webhook/pull-in-data-from-a-webhook-4f3ee61f-eba3-4d06-8f97-e7d5e9a5827d \ -H "Content-Type: application/json" \ -d '{ "email": "test@example.com", "profile_image_url": "https://example.com/avatar.jpg", "signup_timestamp": "2025-07-10T12:00:00Z", "source": "test" }'
- Go to your Clay table
- You should see a new row with the test data
- The enrichments should run automatically
- Once Clay sends data back to your Val, you should see a message in Discord
- It will show the enriched data in JSON format
To test the complete flow with Clerk:
- Create a test user signup in your Clerk dashboard
- Or trigger a test webhook from Clerk's webhook settings
If it's not working, check:
-
Environment Variables in Val.town:
- CLAY_WEBHOOK_URL
- CLERK_SECRET_KEY
- DISCORD_WEBHOOK
-
Clay HTTP API Settings:
- Method: POST
- URL: Your Val endpoint with
/clayEnrichmentWebhookpath - Headers: Add
Content-Type: application/json - Body: Map the enriched fields
-
Check Val.town Logs:
- Go to your Val dashboard
- Check the logs for any errors
-
Test Your Val Endpoints Directly:
# Test Clay webhook endpoint curl -X POST https://charmaine--d67630ca5dae11f0a5690224a6c84d84.web.val.run/clayEnrichmentWebhook \ -H "Content-Type: application/json" \ -d '{"email": "test@example.com", "Name": "Test User", "Title": "Developer"}'