251
All tools
ClayC

by Clay

Run a routine

Runs a Clay-managed function such as Work Email or Company Domain, or a team's own function, on 1 to 100 records and returns a run id to poll for results.

Updated Sep 29, 2026

run-routine.md

Run a routine

Runs a Clay-managed function such as Work Email or Company Domain, or a team's own function, on 1 to 100 records and returns a run id to poll for results.

Note: List routines first for the id and input schema; the managed Work Email routine needs a full name, company name and company domain. Poll GET /routines/run/{routine_run_id}/results until the run is complete.

Set up

Use the first option your agent supports.

CLI (official)

Install the command and sign in with it, then confirm it runs.

npm install --global @clay-run/cli
clay --version

Run clay routines runs start.

API (official)

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
  • Never print API keys.

Ways in

RouteSourceCallRequiredDocs
CLIOfficialclay routines runs startOAuthDocs
APIOfficialPOST /routines/{routine_id}/runAPI key in $CLAY_PUBLIC_API_KEYDocs

Workflows using Run a routine