AI Chatbot Creator API Documentation

Introduction

The AI Chatbot Creator API provides a set of endpoints to manage user authentication, process URLs to extract text content, interact with the AI chatbot, and manage API keys for chatbot integration. This documentation outlines the available endpoints, request/response formats, and error handling.

Authentication

All API endpoints require authentication. Users must register and log in to obtain a session token, which should be included in the request headers for authenticated endpoints.

Endpoints

User Registration

Endpoint: POST /register

Description: Register a new user.

Request Body:

{
    "email": "user@example.com",
    "password": "secure_password"
}

Response:

{
    "message": "User registered successfully"
}

Error Handling

The API uses standard HTTP status codes to indicate the success or failure of a request. Common status codes include:

Error responses will include a JSON object with an error key describing the issue:

{
    "error": "Invalid API key"
}

Rate Limiting

To prevent abuse and ensure fair usage, the API implements rate limiting. The default limits are set to 2000 requests per day and 1000 requests per hour. Exceeding these limits will result in a 429 Too Many Requests status code.

Conclusion

The AI Chatbot Creator API offers a robust set of endpoints to manage user accounts, process URLs, interact with AI chatbots, and manage API keys. By following this documentation, developers can integrate the API into their applications to create, deploy, and manage AI-powered chatbots seamlessly.