How can we help you?

Introduction to API Keys

Generate and use API keys to authenticate backend services for custom sign-in, custom data sync & other API integrations.
Last Updated By Knoon ai on Nov 9, 2025, 2:12 AM

The API Keys are used to authenticate trusted services. For example, to enable custom sign-in, data synchronization, or other secure API calls to the Knoon.ai endpoints.

⚠️ WARNING

Keep API keys private. Treat them like passwords

How to Create an API Key

  1. Navigate to Admin > API Keys in your Knoon dashboard.

  2. Click “Create” to generate a new key.

  3. Give it a clear label (e.g., “Service Login” or “Data Sync”).

  4. Copy and store the key securely in your server or environment variables. Never expose it in client-side code.

Usage Example

Use your organization ID as the username and the API key as the password for authentication when calling Knoon’s API.

import axios from 'axios'

const resp = await axios.post('https://api.knoon.ai/v1/...', 
  {
    // request body
  },
  {
    auth: {
      username: organizationId,
      password: apiKey
    }
  }
)

This ensures secure, server-to-server communication using Basic Auth credentials.

Best Practices

  • Keep keys private: Never include them in frontend, logs, or shared code.

  • Rotate keys regularly: Revoke unused or compromised keys.

  • Restrict usage: Use separate keys for each service or environment.

  • Secure storage: Save in environment variables or a secrets manager (e.g., .env, Google Secret Manager, AWS Secrets Manager).

Common Use Cases

  • Custom Sign-In: Authenticate external apps or services to access your Knoon workspace.

  • Custom Data Sync: Push or pull data between your backend systems and Knoon’s platform.

Not finding what you are looking for? Chat with us now.