API Keys

Getting Your ChatbotKit API Keys

To start using ChatbotKit's APIs and SDKs, you'll need to obtain your API keys. This guide walks you through the process step by step.

1. Create Your ChatbotKit Account

  • Visit chatbotkit.com
  • Sign up for a new account or log in to your existing account
  • Verify your email address if you're a new user

2. Access Your API Keys

Once logged in to your dashboard:

  1. Navigate to the Tokens section
  2. Click "Create Token"
  3. Give your API key a descriptive name (e.g., "Development Key", "Production Key")

3. API Key Types

You can create as many tokens as you wish. For example, you can create:

  • Development Token: Used for testing and development purposes.
  • Production Token: Used for live applications.

🔒 Security Note: Keep your API keys secure and never expose them in client-side code or public repositories.

4. Using Your API Keys

Here's a quick example of how to use your API key with our JavaScript SDK:

import { ChatbotKit } from '@chatbotkit/sdk'; const chatbotkit = new ChatbotKit({ secret: 'your_api_key_here' });

javascript

5. Best Practices

  • Rotate your API keys periodically for security
  • Use environment variables to store API keys in your applications
  • Create separate keys for different environments (development, staging, production)

6. Rate Limits and Quotas

API key usage is subject to rate limits based on your subscription plan. Monitor your usage in the dashboard to ensure you stay within your plan's limits.

💡 Tip: Consider implementing retry logic in your applications to handle rate limiting gracefully.

7. Need Help?

If you encounter any issues with your API keys:

  • Contact our support team through the dashboard
  • Join our Discord community for developer support

8. Next Steps

After obtaining your API keys, you can:

  1. Explore our SDK documentation
  2. Try our quickstart guides
  3. Build your first chatbot
  4. Integrate ChatbotKit into your application