Authentication
All Klozeo API endpoints (except /register and /login) require authentication via an API key.
Get your API key
Section titled “Get your API key”Sign in to your dashboard at klozeo.com/dashboard, navigate to API Keys, and click Add new.
Your API key is shown once at creation time — Klozeo stores only a hashed version for security. Copy it immediately and save it somewhere safe (a password manager, an .env file).
Missed it? Delete the key and create a new one — takes 10 seconds.
Using your API key
Section titled “Using your API key”Pass the key in the X-API-Key header on every request:
curl -H "X-API-Key: sk_live_your_api_key_here" \ https://api.klozeo.com/api/v1/leadsKey format
Section titled “Key format”All API keys follow the format sk_live_<16-byte hex> (example: sk_live_a1b2c3d4e5f60718).
MCP / OAuth clients
Section titled “MCP / OAuth clients”Using an AI client (Claude, Cursor, Cline…)? You don’t need to touch your API key. MCP clients use a browser-based authorization flow — sign in to your Klozeo account once and the client stores a key automatically. See MCP Setup →
Security
Section titled “Security”- Store your key in an environment variable — never hardcode it in source code.
- Revoke compromised keys immediately from the dashboard — any other keys you’ve created will continue working.
- All API keys give full access to your account data. If you need isolation between integrations, create one key per integration and revoke them independently.