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.

Clay API + SDK

Setup your own API / SDK to enrich data with Clay.

Setup

  1. Remix this val

  2. Set up a Clay workbook with both a Webhook column and an HTTP API column (or use this template)

  3. Copy your Clay workbook's Webhook column URL

    CleanShot 2025-08-08 at 13.23.47@2x.png

  4. Set that as CLAY_WEBHOOK_URL in this val's env variables

  5. Copy main.tsx's HTTP endpoint URL

  6. Paste that in the HTTP API column in Clay, with /clay-webhook on the end of it

  7. Try it out: click Run in demo.ts