API Reference

Authentication

Integrate with the Kantos REST API.

All API requests require authentication using an API key. Include your key in the X-Api-Key header with every request.

curl -X GET "https://kantos.ai/api/crm/records/query" \
  -H "X-Api-Key: kantos_your_secret_key" \
  -H "Content-Type: application/json"

API Key Types

Key TypePrefixUse CasePermissions
Server Keykantos_Server-side integrationsFull read/write access
Intake Keykantos_Smart Intake form captureWrite-only to ingest endpoint

Keep Server Keys Secure

Server keys (kantos_...) provide full access to your CRM data. Never expose them in client-side code, public repositories, or browser requests. Use intake keys for frontend integrations.

Creating API Keys

Step

Go to Settings → API Keys

Navigate to the API Keys section in your Kantos dashboard.

Step

Click "Create Key"

Choose the key type based on your use case.

Step

Name Your Key

Give it a descriptive name like "Production Server" or "Marketing Website".

Step

Copy and Store Securely

The full key is only shown once. Store it securely in environment variables.

Key Rotation

For security, rotate your API keys periodically and immediately after any suspected compromise:

  1. Create a new key with the same permissions
  2. Update your integration to use the new key
  3. Verify the integration works with the new key
  4. Revoke the old key from Settings → API Keys

Audit Trail

All API key operations (creation, usage, revocation) are logged in the audit trail. Review key activity under Settings → API Keys to monitor for unexpected usage.

Environment Variables

Store API keys as environment variables rather than hardcoding them:

.envbash
KANTOS_API_KEY=kantos_your_secret_key
KANTOS_INTAKE_KEY=kantos_your_intake_key

Next Steps

    Authentication - API Reference | Kantos Docs