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 documentGET
/api/documentsList documentsGET
/api/documents/:idGet documentDELETE
/api/documents/:idDelete documentPOST
/api/queryQuery documentsPOST
/api/query/streamStream queryPOST
/api/chatStart chatGET
/api/chat/historyChat historyGET
/api/entitiesList entitiesGET
/api/relationsList relationsGET
/api/graphGet knowledge graph