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.

View on GitHub
Updated Sep 27, 2026Available asCLIAPI

Description

Clay-managed functions cover work email, phone, job title, company domain, employee count, tech stack, funding and job openings. List routines to find the id and input schema before running: 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.

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.

Clay-managed functions cover work email, phone, job title, company domain, employee count, tech stack, funding and job openings. List routines to find the id and input schema before running: 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, then confirm it runs.

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

Run clay routines runs start.

API (official)

Before doing anything else, make one read-only call to confirm access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data.
  • Never print API keys.

Built from these files in the repository

The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.

Ways in

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

Workflows using Run a routine