Skip to main content

NeuralTalk AI API Overview

The NeuralTalk AI API allows developers to integrate our powerful conversational AI capabilities directly into their applications. This documentation provides everything you need to know to get started with our API.

Introduction

Our RESTful API enables you to:

  • Create and manage AI chatbots programmatically
  • Send and receive messages
  • Access and update knowledge bases
  • Retrieve conversation history and analytics
  • Customize bot behavior and settings

Authentication

All API requests require authentication using API keys. To obtain an API key:

  1. Log in to your NeuralTalk AI Dashboard
  2. Navigate to Settings > API
  3. Click Generate API Key
  4. Copy and securely store your API key

Include your API key in the header of all requests:

Authorization: Bearer YOUR_API_KEY

Base URL

All API requests should be made to the following base URL:

https://api.neuraltalk.ai/v1

Rate Limits

Our API implements rate limiting to ensure fair usage:

PlanRate Limit
Free100 requests/hour
Basic1,000 requests/hour
Professional10,000 requests/hour
EnterpriseCustom

When you exceed your rate limit, the API will return a 429 Too Many Requests response.

Response Format

All API responses are returned in JSON format. A typical successful response includes:

{
"status": "success",
"data": {
// Response data
}
}

Error responses follow this format:

{
"status": "error",
"error": {
"code": "error_code",
"message": "Description of the error"
}
}

Available Endpoints

Chatbots

EndpointMethodDescription
/chatbotsGETList all chatbots
/chatbots/{id}GETGet a specific chatbot
/chatbotsPOSTCreate a new chatbot
/chatbots/{id}PUTUpdate a chatbot
/chatbots/{id}DELETEDelete a chatbot

Conversations

EndpointMethodDescription
/conversationsGETList conversations
/conversations/{id}GETGet a specific conversation
/conversationsPOSTStart a new conversation
/conversations/{id}/messagesPOSTSend a message

Knowledge Base

EndpointMethodDescription
/knowledgeGETList knowledge items
/knowledge/{id}GETGet a specific knowledge item
/knowledgePOSTAdd knowledge
/knowledge/{id}PUTUpdate knowledge
/knowledge/{id}DELETEDelete knowledge

Analytics

EndpointMethodDescription
/analytics/usageGETGet usage statistics
/analytics/conversationsGETGet conversation metrics
/analytics/performanceGETGet performance metrics

Example: Sending a Message

Here's an example of sending a message using the API:

curl -X POST "https://api.neuraltalk.ai/v1/conversations/conv_123/messages" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "What are your business hours?",
"user_id": "user_456"
}'

SDKs and Libraries

We provide official client libraries for several programming languages:

Webhooks

Our API supports webhooks for real-time notifications of events. Configure webhooks in the dashboard or via the API to receive notifications for:

  • New messages
  • Conversation started
  • Conversation ended
  • Knowledge base updated
  • Error events

Versioning

The API is versioned with the version number included in the URL path. The current version is v1. We provide backward compatibility for at least 12 months after a new version is released.

Support

If you need help with our API, you can:

Get Started with the API

Ready to integrate NeuralTalk AI into your application? Check out our API Quickstart Guide to send your first API request in minutes.