API Documentation

    Integrate your AI bots programmatically with our powerful REST API. Build custom applications, automate workflows, and scale your chatbot deployment with enterprise-grade reliability.

    Quick Links:

    Secure & Reliable

    Enterprise-grade security with API key authentication and rate limiting

    High Performance

    Sub-second response times with global CDN and edge computing

    Global Scale

    99.9% uptime SLA with automatic scaling and load balancing

    Bot Management

    Manage your bots and their configurations

    GET
    /api/bots

    List all bots in your organization

    curl -X GET "https://api.aichatforbusiness.com/functions/v1/api-bots" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Conversations

    Send messages and manage conversations

    POST
    /api-conversations

    Send a message and get AI response

    curl -X POST "https://api.aichatforbusiness.com/functions/v1/api-conversations" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "bot_id": "YOUR_BOT_ID",
        "message": "Hello, I need help with my account",
        "conversation_id": "OPTIONAL_EXISTING_CONVERSATION_ID"
      }'

    Response:

    {
      "conversation_id": "uuid",
      "response": "Hello! I'd be happy to help...",
      "tokens_used": 150,
      "timestamp": "2025-12-10T..."
    }
    GET
    /api-conversations?id=xxx

    Get conversation history

    curl -X GET "https://api.aichatforbusiness.com/functions/v1/api-conversations?id=CONVERSATION_ID" \
      -H "Authorization: Bearer YOUR_API_KEY"

    Response:

    {
      "id": "uuid",
      "bot_name": "Customer Support Bot",
      "transcript": [...],
      "user_message_count": 5,
      "bot_message_count": 5,
      "timestamp": "2025-12-10T...",
      "satisfaction_rating": 4
    }

    Analytics

    Get insights and performance metrics

    GET
    /api/analytics/usage

    Get usage statistics

    curl -X GET "https://api.aichatforbusiness.com/functions/v1/analytics-tracking?period=7d" \
      -H "Authorization: Bearer YOUR_API_KEY"

    Need Help?

    Get support and join our developer community