Introduction

Learn how to use the Kejue API to create calls and manage leads.

Getting Started

The Kejue API allows you to programmatically create and manage AI-powered phone calls. This documentation provides comprehensive information about all available endpoints, request/response formats, and authentication methods.

Base URL

All API requests should be made to:

https://api.kejue.co/api/v1

Authentication

The Kejue API uses Bearer token authentication. Include your API key in the Authorization header:

Authorization: Bearer kejue_xxxxxxxxxxxxxxxx

Your API key can be found in your Kejue dashboard under Settings > API Keys.

Keep your API key secure and never expose it in client-side code or public repositories.

Key Features

  • Create Calls: Initiate calls for existing leads or create new leads on the fly
  • Lead Management: Create and manage leads with detailed information
  • Call Options: Configure assistant behavior, scheduling, and call parameters
  • Webhooks: Receive real-time notifications about call events

Response Format

All responses are returned in JSON format. Success responses include relevant data, while error responses include detailed validation information.

Rate Limits

API requests are rate-limited to ensure fair usage. Rate limit headers are included in all responses:

  • X-RateLimit-Limit: Maximum number of requests allowed
  • X-RateLimit-Remaining: Number of requests remaining
  • X-RateLimit-Reset: Time when the rate limit resets

Next Steps

  • Review the API endpoints to understand available operations
  • Set up webhooks to receive real-time call events
  • Check out code examples for your preferred programming language

Last updated on