Quickstart Guide
This guide will help you get started with the Klen AI API. We’ll walk through the process of setting up your account, creating an API key, and making your first API call.Prerequisites
Before you begin, you’ll need:- A Klen AI account (sign up at app.klen.ai if you don’t have one)
- Basic knowledge of REST APIs and your preferred programming language
- A tool to make API requests (like cURL, Postman, or your programming language’s HTTP client)
Step 1: Create an API Key
- Log in to your Klen AI dashboard at app.klen.ai
- Navigate to Settings > API Keys
- Click “Create New API Key”
- Give your key a descriptive name and select the appropriate permissions
- Click “Create” and copy your API key
Step 2: Make Your First API Call
Let’s make a simple API call to list your agents. This will help verify that your API key is working correctly.Step 3: Initiate a Call
Now let’s make an outbound call using one of your AI agents.Make sure your account has sufficient funds and that the agent you’re using has an assigned phone number.
Step 4: Set Up a Webhook (Optional)
To receive real-time updates about call events, you can set up a webhook endpoint.- Create a publicly accessible endpoint on your server that can receive POST requests
- Register the webhook in the Klen AI dashboard or using the API:
- Implement logic on your endpoint to handle the webhook events
Next Steps
Congratulations! You’ve successfully set up your Klen AI API key and made your first API calls. Here are some suggested next steps:- API Reference: Explore the full API documentation
- Webhook Events: Learn about all available webhook events
- Calls API: Discover how to manage calls
- Agents API: Learn how to work with AI agents
- Contacts API: Explore contact management features
- Context Variables - Manage custom variables for your contacts and business profile
- Calendar API: Discover the calendar integration capabilities