Skip to content

Authentication

All Klozeo API endpoints (except /register and /login) require authentication via an 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.

Pass the key in the X-API-Key header on every request:

Terminal window
curl -H "X-API-Key: sk_live_your_api_key_here" \
https://api.klozeo.com/api/v1/leads

All API keys follow the format sk_live_<16-byte hex> (example: sk_live_a1b2c3d4e5f60718).

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 →

  • 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.