Run a function routine
Custom function routine ids use the formatfunction:t_.... To start a run, call POST /routines/{routine_id}/run.
Webhook notifications
Therun and run-batch/start requests accept an optional webhook_id. Clay notifies that webhook when the run finishes, so your system can react without polling.
See clay webhooks for webhook creation, testing, delivery payloads, and signature verification.
Batch run a function routine
For large input sets, create an upload URL, upload JSONL input, then start a batch run.Batch runs
Learn how batch runs fit into Routines.
When to use Workflows
Workflows are also routines, but they are in Alpha and are built differently. Use Workflows when you want to build, edit, validate, run, inspect, or batch-run Clay logic from the plugin or CLI instead of building the logic in the Clay UI.Workflows (Alpha)
Compare Workflows with functions.

