Skip to main content

api/introduction.md

API Introduction

Integrate Danbot's AI capabilities into your applications with our RESTful API.

🌐 Headless API

Overview

The Danbot API provides access to:

  • AI-powered responses
  • Knowledge base queries
  • Real-time conversation
  • Custom integrations

Base URL

https://danmind.io/api/

Authentication

# Using Authorization header
Authorization: Bearer YOUR_API_KEY

# Using X-API-Key header
X-API-Key: YOUR_API_KEY

🚀 Quick Start

Basic Query

curl -X POST "https://danmind.io/api/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What are the main features?",
"chatId": -1002459289838,
"threadId": 1602
}'

Response Format

{
"success": true,
"response": "Danbot offers AI-powered chat, scam detection...",
"metadata": {
"processingTimeMs": 150,
"queryLength": 26,
"chatId": -1002459289838,
"threadId": 1602
}
}