Skip to main content
Every request to the Clay Public API must include a Clay API key in the clay-api-key header. Store your key in an environment variable and pass it in the header:
API keys are tied to a Clay user and workspace access. Create one under Settings → Account → API keys (beta). Keep keys server-side and do not expose them in browser code, mobile apps, public repositories, logs, or analytics tools.

Failed authentication

Requests without a valid API key return a non-2xx response with the standard error shape: