Welcome to Chatbot API Documentation
๐ฏ What is this API for ?
Welcome to the API documentation for the E-commerce Chatbot Assistant.
This API allows you to integrate a conversational AI assistant into your e-commerce application.
It can handle customer service requests, provide order-related information, and offer personalized product recommendations โ all through natural language.
Getting Started
Requirements
- An API key (get one from your dashboard)
- An HTTP-capable frontend or backend
Authentication
All endpoints require authentication via API key in the Authorization
header :
Authorization: Bearer YOUR_API_KEY
- Format: Bearer Token
- Lifetime: 24h (configurable)
Quickstart
curl -X POST https://api.chatbot.ai/v1/chat \
-H "Authorization: Bearer sk-123..." \
-H "Content-Type: application/json" \
-d '{"message": "Where is my order?"}'
Expected response:
{ "reply": "Your order ORD-789 is on the way!" }
API Reference
This section lists all available endpoints and their purposes.
Endpoints
Endpoint | Method | Description |
---|---|---|
/api/v1/chat/send |
POST | Send a message to the chatbot assistant. |
/api/v1/chat/history |
GET | Retrieve user conversation history. |
/api/v1/chat/analytics |
GET | Get analytics on chatbot usage. |
Rate Limiting
The API enforces rate limits to ensure fair usage.
Please refer to each endpointโs documentation for specific limits and best practices.
For detailed information, click on the endpoint links above.