API Keys

Learn how to create and manage API keys for programmatic access.

What are API Keys?

API keys are credentials that allow you to:

  • Access the Kaana API programmatically

  • Build custom integrations

  • Automate workflows

  • Connect third-party tools

Accessing API Key Settings

1

Go to Settings and select API Keys.

Note: Requires appropriate permissions.

Creating an API Key

Generate a New Key

1

Click + Create API Key.

2

Enter a name for the key (e.g., "Zapier Integration").

3

Click Create.

4

Copy the key immediately — it's only shown once!

Key Naming

Use descriptive names:

  • Include the purpose: "Slack Integration"

  • Include environment: "Dev Testing Key"

  • Include owner if shared: "John's Dashboard Key"

Viewing Your Keys

Your API keys list shows:

  • Key name

  • Created date

  • Last used date

  • Status (active/revoked)

You cannot view the full key after creation.

Using Your API Key

In API Requests

Include the key in the Authorization header:

Example with cURL

Example with JavaScript

Example with Python

Revoking Keys

If a key is compromised or no longer needed:

1

Go to Settings > API Keys.

2

Find the key.

3

Click Revoke.

4

Confirm revocation.

Revoked keys immediately stop working. This cannot be undone.

Security Best Practices

Keep Keys Secret

  • Never share keys publicly

  • Don't put keys in source code

  • Use environment variables

  • Don't email keys

Store Securely

Good practices:

  • Use a secrets manager

  • Use environment variables

  • Encrypt at rest

Bad practices:

  • Storing in plain text files

  • Committing to git repositories

  • Sharing via unsecured channels

Rotate Keys

1

Create a new key.

2

Update your integrations.

3

Revoke the old key.

Least Privilege

  • Create separate keys for different uses

  • Revoke keys you no longer need

  • Audit key usage regularly

Key Permissions

API keys inherit your account permissions:

  • If you're an admin, the key has admin access

  • Tenant isolation is enforced

  • You can only access your organization's data

Troubleshooting

chevron-right"Invalid API Key" Errorhashtag
  • Verify the key is correct (no extra spaces)

  • Check if the key was revoked

  • Ensure you're using Bearer authentication

chevron-right"Unauthorized" Errorhashtag
  • Verify you have permission for the action

  • Check if your account is active

  • Confirm you're accessing the correct tenant

chevron-rightKey Not Workinghashtag

Create a test request to /api/user.If it works, the issue is with the specific endpoint.If it fails, the key may be revoked or invalid.

Limits

Number of Keys

You can create multiple API keys:

  • Standard: Up to 5 active keys

  • Enterprise: Unlimited keys

Rate Limits

API keys share your account's rate limits:

  • 100 requests/minute (standard)

  • Higher limits for enterprise

Best Practices Summary

1

Name keys descriptively — Know what each key is for.

2

Store securely — Use environment variables or secrets managers.

3

Rotate regularly — Replace keys periodically.

4

Revoke when done — Remove unused keys.

5

Monitor usage — Watch for unusual activity.

6

Use separate keys — One per integration.

Last updated

Was this helpful?