Now in Public Beta - Try AIDORag free today!Get Started
API

Powerful API Access

Integrate AIDORag into your applications with our comprehensive REST API

Example Code
// Query your documents with AIDORag API
const response = await fetch('https://api.aidorag.com/v1/query', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    query: 'What are the key findings?',
    mode: 'hybrid',
    limit: 5
  })
});

const data = await response.json();
console.log(data.results);

API Features

RESTful API

Standard REST endpoints for all operations

API Keys

Secure authentication with API keys

Webhooks

Real-time event notifications

Available Endpoints

POST/api/documentsUpload document
GET/api/documentsList documents
GET/api/documents/:idGet document
DELETE/api/documents/:idDelete document
POST/api/queryQuery documents
POST/api/query/streamStream query
POST/api/chatStart chat
GET/api/chat/historyChat history
GET/api/entitiesList entities
GET/api/relationsList relations
GET/api/graphGet knowledge graph

Ready to Integrate?

Get your API key and start building

Get Started