Prefer the CLI?
The CLI is the quickest path for most first-time users and agent workflows.
URLs and paths
Use these path types consistently:| Type | Example | Meaning |
|---|---|---|
| Runtime API URL | https://api.clay.com/public/v0/me | The URL your code calls |
| Runtime endpoint path | POST /routines/{routine_id}/run | The API path relative to /public/v0 |
| Guide page | /searches, /routines, /tables | Human and agent-readable concept docs |
| Generated API reference | /api-reference/searches/... | Mintlify docs for schemas and try-it UI |
/api-reference/... from code. It is a docs URL, not a Clay API endpoint.
1. Set your API key
Create an API key in Account settings. Then store it in your environment.2. Call the API
UseGET /me to verify that your key works.
3. Run useful Clay work
After your key is verified, choose what you want Clay to do:- Use Searches to find companies, people, and jobs.
- Use Routines to run Clay-managed functions, custom functions, or Workflows.
- Use Tables to query existing table data. Tables are Enterprise only.

