Is the Clay API Good for Custom Data Workflows? (2026)

The Clay API is good for starting Clay's own enrichment work from code, but it can't write table rows.

Published

Written by

Manmohit Grewal

Reviewed by

Abhilash Chowdhary

Read time

12

minutes

The domain retool.com is sent from code to the Clay Public API, which answers HTTP 202, in progress. A list notes 1 to 100 items per call, a limit of 300 requests a minute, no writing of table rows, and results by polling or webhook.

The Clay API is good for starting Clay's own enrichment work from code, but it can't write table rows. Clay launched its Public API and CLI on 9 July 2026. Its Agent Plugin for coding agents went generally available on 15 September 2026.

The best way we've found to think about it is as a remote control for a television you already own. The API remote-controls work you've already set up in Clay: you send up to 100 items to a Clay function, Clay processes them in the background, and then you poll for results or wait for a webhook. Tables are read-only through the API, so Clay's documented route for sending records into a table from code is an inbound webhook, which is a slightly roundabout way of saying the front door is locked and the side window is open.

The Clay API suits Enterprise teams whose lists and logic already live in Clay, because they can trigger that work from a backend or an agent without anyone opening a table. It's a weaker fit if you want data straight back into your own app or database, or if your job writes rows, since a remote control is wonderful for changing the channel and no help at all if what you wanted was a different television.

Clay API at a glance

  • Public API: Clay serves a REST API at api.clay.com/public/v0, authenticated with a clay-api-key header.

  • What it calls: You can start Clay-managed functions, custom functions and Workflows, search people and companies, and read known tables.

  • What it can't do: The API can't create tables, add fields or write records.

  • Adding records: Code sends records into a Clay table through an inbound webhook, capped at 50,000 submissions per webhook unless Enterprise auto-delete is on.

  • Plan: Clay's pricing page lists Clay API access on the Enterprise plan.

  • Cost: API calls use the same credits and actions as the same work done in the Clay app.

  • Rate limit: Each workspace gets 300 requests per minute, shared across all its keys.

  • Batch size: One function call takes 1 to 100 items, and bigger jobs go through an uploaded JSONL file.

Does Clay have a public API?

Yes, Clay has a public REST API, served from https://api.clay.com/public/v0. Every request carries a personal key in the clay-api-key header, according to Clay's authentication docs, and keys are tied to a Clay user and their workspace access, so whoever creates one is lending it their permissions.

Clay's changelog says you can "Use the API to run functions, Claygents, and workflows from your own app." The developer quickstart splits the platform into two paths: the Agent Plugin is for coding agents, and the Public API is for your own backend services and product features.

What can you do with the Clay API?

The Clay API lets you call the Clay logic and data you'd otherwise reach through the app. It covers five jobs:

  • Start functions: You can call Clay-managed and custom functions on a list of inputs, such as domains.

  • Search people and companies: You can query Clay's GTM database with filters across people and companies, then page through the results.

  • Read tables: You can send structured queries to a known table and choose fields, filters and ordering.

  • Get notified: You can register a webhook so Clay posts to your service when a function call finishes.

  • Build Workflows: You can create and edit Workflows from the CLI and Plugin, which Clay's API and CLI guide marks as beta.

Every function call is asynchronous and returns a routine_run_id. The results endpoint answers HTTP 202 with progress counters while Clay works. Once the work is done, it answers HTTP 200 with a data array.

What can't the Clay API do?

The Clay API can't build or change tables. Clay's API and CLI guide says tables are read-only through the API: you "can query and read rows, but not create tables, add fields, or write records." It also says there are "no current plans to support table building from the API or CLI." In other words, the table is a museum exhibit, and the API is a visitor with a very good view.

The table below sums up what the API covers, from Clay's own docs:

Task

Through the Clay API?

Start a Clay-managed or custom function on 1 to 100 items

Yes, asynchronous

Start a large batch from an uploaded JSONL file

Yes, asynchronous

Search Clay's people and company database

Yes, within your plan's result caps

Query rows from a table you know the ID of

Yes, structured queries on Enterprise, up to 100 rows a page

List the tables in your workspace

No, there's no list-tables endpoint

Create a table or add a field

No

Write or update rows

No

Get the answer in the same response

No, you poll or wait for a webhook

So the API tells Clay what to do with work you've built in Clay. If you want to send a domain and get a company record back in the same call, you need a different kind of service. Workflows are still beta, so Clay recommends its managed and custom functions for production use.

How do you add records to a Clay table programmatically?

You add records to a Clay table programmatically by posting JSON to a webhook table. The Public API can't write rows, so Clay's webhook guide documents the route.

The setup takes four steps:

  1. Create the table: In a workbook, click Add, search for Webhooks and choose Monitor webhook.

  2. Copy the URL: Clay gives you a webhook URL and a ready-made cURL command.

  3. Secure it: Add an authentication token if you want one, and copy it right away, because Clay only shows it once.

  4. Send records: Post JSON from your app, and each submission becomes a new row.

A request from your own code looks like this, with the URL Clay gives you:

curl -X POST "<your Clay webhook URL>" \
  -H "Content-Type: application/json" \
  -d '{"company": "Retool", "domain": "retool.com"}'
curl -X POST "<your Clay webhook URL>" \
  -H "Content-Type: application/json" \
  -d '{"company": "Retool", "domain": "retool.com"}'
curl -X POST "<your Clay webhook URL>" \
  -H "Content-Type: application/json" \
  -d '{"company": "Retool", "domain": "retool.com"}'

Each webhook source takes 50,000 submissions over its lifetime, and the count doesn't reset when you delete rows. On Enterprise, auto-delete (passthrough tables) lifts the cap, while other plans need a new webhook after 50,000. Clay's pricing page lists webhook automation on Growth and Enterprise.

The same route works for pushing events from another tool into a Clay table, such as 200 form submissions a day. Without Enterprise auto-delete, that volume fills one webhook source in 250 days by our arithmetic, so plan when you'll rotate webhooks before you build on one (day 251 is a very annoying day to find this out).

Which Clay plans include API access, and what does it cost?

Clay API access is listed on the Enterprise plan, which has custom pricing. Clay's pricing page also says Enterprise needs an annual commitment. Growth adds webhooks and the HTTP API column, which lets a table call other APIs.

Plan

Clay API access

Webhooks and HTTP API column

Structured table queries

Free

Not listed

Not included

Not included

Launch

Not listed

Not included

Not included

Growth

Not listed

Included

Not included

Enterprise

Included

Included

Included

Enterprise includes 100,000+ Data Credits and 200,000+ Actions a month, according to Clay's pricing FAQ. Data Credits pay for data such as emails and phone numbers. Actions pay for orchestration, such as enriching a row or calling an AI model. If you bring your own API keys for a provider, you skip Data Credits for that provider.

API calls cost the same as the same work in the app. Clay's API and CLI guide says calls "consume the same credits and actions as the equivalent work done in-product." An enrichment that returns no result costs nothing, per Clay's pricing page. For full plan prices and cost per record, see this Clay pricing review.

What are the Clay API rate limits?

The Clay API allows 300 requests per minute per workspace, shared across every API key and OAuth sign-in. Going over returns HTTP 429 with a Retry-After header, per Clay's rate-limit docs.

Limit

Value

Clay page

Requests

300 a minute per workspace, about 5 a second

Rate limits

Items per function call

1 to 100

Execute a routine

Larger jobs

Batch over an uploaded JSONL file

Routines API

Table query page

Up to 100 rows

Tables

Enterprise search results

500 a request, 10,000,000 per rolling 30 days

Searches

Webhook source

50,000 submissions over its lifetime, unlimited with Enterprise auto-delete

Webhook guide

Some endpoints have their own limits, and Clay says bursts can hit 429 even under the per-minute total. Going over a search cap returns HTTP 402 with the name of the limit you hit.

Should you use the Clay API, Clay MCP or the Clay CLI?

Use the Clay API from your own backend and the CLI from a coding agent. Clay MCP is for sellers working in chat, and Clay's API and CLI guide treats it as a separate product.

Option

Best for

How it signs in

What to know

Public API

Background jobs and your own apps

clay-api-key header

Asynchronous functions, searches and table reads

CLI and Agent Plugin

Claude Code, Codex and Cursor

clay login with OAuth, or clay login --device on a headless machine

Needs an agent with a shell, so it won't work in claude.ai or ChatGPT

Clay MCP and the Claude connector

Sellers working in chat

An admin sets up MCP for Reps, with per-rep credit budgets

The Claude connector pages through up to 100 results

The plugin installs Clay's skills and the clay CLI, per the quickstart and the plugin repository. The CLI basics page covers the sign-in. Clay gives you 500 free credits the first time you connect Clay to Claude, per its Claude connector guide.

Is the Clay API good for custom data workflows?

The Clay API is good for custom workflows that start and end inside Clay. If your lists and enrichment logic already live in Clay, a backend job or an agent can trigger them without anyone opening a table.

Clay itself works well for a RevOps person enriching a lead list without writing code, and the API adds a way to call that same work from code. It is weaker in three cases:

  • Data into your own app or database: Results arrive after polling, and your code still has to move them into your own system.

  • High volume: By our arithmetic, the default 300 requests a minute at 100 items a call allows about 30,000 items a minute. Every poll counts as a request, and bigger jobs go through JSONL batch runs.

  • Anything that writes rows: The API can't add or update rows, and outside Enterprise auto-delete a webhook source stops at 50,000 submissions.

Every API call still spends Clay credits and actions, and Clay's guide says credit budgets aren't available on the developer platform yet. Before you commit, price one month of your real workload in Actions and Data Credits.

When does a data API fit better than Clay?

A data API fits better when the data has to go somewhere Clay doesn't own. That's usually one of five jobs:

  • Building data into your product: Your app calls the API and shows the result to your users.

  • An agent fetching on demand: An agent asks for one company mid-task and needs the answer in the same response.

  • Results into your own database: You store every record in your own warehouse or CRM.

  • Change alerts: You want a webhook when a tracked company or person changes.

  • Known cost per call: You need the credit cost of each call before you ship.

What does a custom data workflow look like?

A custom data workflow has three layers:

  • Data layer: A data API answers search, enrichment and change-alert calls.

  • Orchestration layer: Your own code or Claude Code decides which call to make next.

  • Destination layer: The record ends up in your CRM, warehouse, Slack or internal tool.

For example, a nightly job might work in three steps:

  1. Search: The data API returns companies that match your ICP.

  2. Enrich: The job enriches the top 50 of them.

  3. Store: The job writes each record to your CRM.

Clay's API covers the orchestration step when the logic lives in Clay functions, and a data API covers the data step when the record has to go into your own system.

Do teams replace Clay or use both?

Many teams we talk to keep Clay and add a data API beside it, and using both is normal. A common split is a data API for the list and Clay for one enrichment step: for example, the data API returns 500 matching people and Clay finds their personal emails. Some teams we talk to have moved to buying data straight from providers through their APIs, and one agency we talked tobuilt its own tool that connects to each data provider through its API.

What does the same request look like on each?

The two calls below ask for the same company, retool.com. The Clay call starts a custom function, from Clay's Routines API docs, trimmed to one input with retool.com as the domain:

ROUTINE_RUN_ID=$(curl --request POST \
  --url "https://api.clay.com/public/v0/routines/function:t_abc123/run" \
  --header "Content-Type: application/json" \
  --header "clay-api-key: $CLAY_PUBLIC_API_KEY" \
  --data '{
    "items": [
      {
        "id": "row-1",
        "inputs": {
          "domain": "retool.com"
        }
      }
    ]
  }' | jq -r '.routine_run_id')
ROUTINE_RUN_ID=$(curl --request POST \
  --url "https://api.clay.com/public/v0/routines/function:t_abc123/run" \
  --header "Content-Type: application/json" \
  --header "clay-api-key: $CLAY_PUBLIC_API_KEY" \
  --data '{
    "items": [
      {
        "id": "row-1",
        "inputs": {
          "domain": "retool.com"
        }
      }
    ]
  }' | jq -r '.routine_run_id')
ROUTINE_RUN_ID=$(curl --request POST \
  --url "https://api.clay.com/public/v0/routines/function:t_abc123/run" \
  --header "Content-Type: application/json" \
  --header "clay-api-key: $CLAY_PUBLIC_API_KEY" \
  --data '{
    "items": [
      {
        "id": "row-1",
        "inputs": {
          "domain": "retool.com"
        }
      }
    ]
  }' | jq -r '.routine_run_id')
curl --request GET \
  --url "https://api.clay.com/public/v0/routines/run/$ROUTINE_RUN_ID/results" \
  --header "clay-api-key: $CLAY_PUBLIC_API_KEY"
curl --request GET \
  --url "https://api.clay.com/public/v0/routines/run/$ROUTINE_RUN_ID/results" \
  --header "clay-api-key: $CLAY_PUBLIC_API_KEY"
curl --request GET \
  --url "https://api.clay.com/public/v0/routines/run/$ROUTINE_RUN_ID/results" \
  --header "clay-api-key: $CLAY_PUBLIC_API_KEY"

Per the Routines API docs, Clay returns HTTP 202 with "status": "in_progress" until the function finishes, so you repeat the second request until you get HTTP 200. The keys inside each result depend on the outputs your function defines.

The Crustdata call is one request to Company Enrich, from our docs:

curl --request POST \
  --url https://api.crustdata.com/company/enrich \
  --header 'authorization: Bearer YOUR_API_KEY' \
  --header 'content-type: application/json' \
  --header 'x-api-version: 2025-11-01' \
  --data '{
    "domains": ["retool.com"]
  }'
curl --request POST \
  --url https://api.crustdata.com/company/enrich \
  --header 'authorization: Bearer YOUR_API_KEY' \
  --header 'content-type: application/json' \
  --header 'x-api-version: 2025-11-01' \
  --data '{
    "domains": ["retool.com"]
  }'
curl --request POST \
  --url https://api.crustdata.com/company/enrich \
  --header 'authorization: Bearer YOUR_API_KEY' \
  --header 'content-type: application/json' \
  --header 'x-api-version: 2025-11-01' \
  --data '{
    "domains": ["retool.com"]
  }'

The response comes back in the same call, shown here trimmed to a few fields:

[
  {
    "matched_on": "retool.com",
    "match_type": "domain",
    "matches": [
      {
        "company_data": {
          "crustdata_company_id": 633593,
          "basic_info": {
            "name": "Retool",
            "primary_domain": "retool.com",
            "year_founded": 2017,
            "employee_count_range": "201-500"
          }
        }
      }
    ]
  }
]
[
  {
    "matched_on": "retool.com",
    "match_type": "domain",
    "matches": [
      {
        "company_data": {
          "crustdata_company_id": 633593,
          "basic_info": {
            "name": "Retool",
            "primary_domain": "retool.com",
            "year_founded": 2017,
            "employee_count_range": "201-500"
          }
        }
      }
    ]
  }
]
[
  {
    "matched_on": "retool.com",
    "match_type": "domain",
    "matches": [
      {
        "company_data": {
          "crustdata_company_id": 633593,
          "basic_info": {
            "name": "Retool",
            "primary_domain": "retool.com",
            "year_founded": 2017,
            "employee_count_range": "201-500"
          }
        }
      }
    ]
  }
]

The Clay call reaches whatever logic and providers your function uses, while the Crustdata call returns one company record you can store or pass to an agent straight away. Company Enrich costs 2 credits per company, with a limit of 15 requests a minute and up to 25 companies a request.

Which data APIs can fill the data layer?

Several data APIs can fill the data layer, and each suits a different job:

  • Crustdata: Crustdata puts company and people search, enrichment and change alerts through Watcher in one API. It also has an MCP server for Claude and other agents. It covers 1B+ people and 60M+ companies with 350+ filters. Credits cost $0.30 to $0.10 per credit, lower depending on plan, and our docs list credit costs per call. It fits teams that want search, enrichment and alerts from one vendor, called from code or an agent.

  • People Data Labs: People Data Labs has APIs to enrich and search people and companies. It also licenses data feeds through Snowflake and Databricks, which suits bulk builds.

  • Hunter: Hunter focuses on finding and verifying email addresses, with its own MCP server. It's the simpler pick when you only need emails.

  • Apollo: Apollo pairs a database of 240M+ contacts with outreach sequences, and its MCP connects to Claude. It suits teams that want prospecting and sending in one tool.

  • Cognism: Cognism sells phone-verified mobile numbers with a focus on European B2B data. It's the stronger choice when direct dials in Europe matter most.

Can you replace Clay with Claude Code and a data API?

Yes, for many list-building and enrichment jobs, Claude Code can handle the steps while a data API supplies the data. Claude Code writes the script that calls the data API,reads each response and uses it to decide which record to ask for next. Teams we talk to describe this move often. They ask Claude Code to pull a list and enrich it, where they used to build a new Clay table by hand for each idea.

Clay now has its own Claude Code plugin. That leaves two ways to work in Claude Code:

  • Clay in Claude Code: You keep Clay's functions, waterfall and tables, and every step spends Clay credits and actions, with results returned asynchronously.

  • A data API in Claude Code: You get records in the same response and pay a known credit cost per call.

You can connect a data API to Claude Code through MCP or call its REST API from a script, and Crustdata supports both, with an MCP server and a REST API. For the full build with code and scheduling, follow our guide to replacing a Clay workflow with Claude and an API. For a side-by-side of the two products, see Crustdata as a Clay alternative.

Clay API FAQ

Is the Clay API free?

The Clay API has no fee of its own, but calls spend credits and actions like app work, so the real cost is whatever the same work would cost in the Clay app. Clay's pricing page lists Clay API access on the Enterprise plan, which is custom-priced.

Where is the Clay API documentation?

Clay's API documentation lives at developers.clay.com, and its llms.txt file lists every endpoint. Clay's API and CLI guide covers plan limits, so start there if you're checking what your plan allows before you build.

How do I get a Clay API key?

You create a Clay API key in the Clay app, under API and CLI. You can also use clay api-keys create --name "" in the CLI. Clay shows the key once, so store it server-side.

Does Clay have webhooks?

Clay has webhooks in both directions. Outbound webhooks tell your service when a function call finishes and inboundwebhook tables accept up to 50,000 records per source unless Enterprise auto-delete is on, per Clay's webhook guide.

Is Clay MCP the same as the Clay API?

Clay MCP is a separate connection from the Clay API. MCP serves sellers in chat apps with per-rep credit budgets, while the API serves your own code with a clay-api-key header, so the two are built for different people.

What can I use instead of the Clay API?

Crustdata, People Data Labs and Apollo can replace the Clay API when records belong in your own database. Hunter suits email-only jobs, and Cognism suits European direct dials.