API Reference Overview
Complete API documentation for Zorora’s programmatic interfaces.
What You Can Find Here
This section provides comprehensive API documentation for:
- Research API - Start research, get results, browse history
- Settings API - Configure models, endpoints, and API keys
- Python SDK - High-level Python interface for research engine
Quick Start
Research API Example
# Start research
curl -X POST http://localhost:5000/api/research \
-H "Content-Type: application/json" \
-d '{"query": "latest LLM developments", "depth": 1}'
Python SDK Example
from engine.research_engine import ResearchEngine
engine = ResearchEngine()
state = engine.deep_research("Your research question", depth=1)
print(state.synthesis)
API Endpoints
Research Endpoints
POST /api/research- Start deep research workflowGET /api/research/<research_id>- Get research results by IDGET /api/research/history- Get research history
Settings Endpoints
GET /api/settings/config- Read configurationPOST /api/settings/config- Write configurationGET /api/settings/models- List available modelsGET /api/settings/endpoints- List endpointsPOST /api/settings/endpoint- Add/edit endpointDELETE /api/settings/endpoint/<key>- Delete endpoint
Python SDK
The Python SDK provides a high-level interface for programmatic access:
Research Engine:
- Start research
- Load past research
- Search research history
- Execute deep research workflow
Storage:
- SQLite database for fast queries
- JSON files for full research state
- Automatic persistence
Authentication
Current: No authentication required (local deployment)
Future: API key authentication for remote deployments
Rate Limits
Current: No rate limits (local deployment)
Future: Rate limits for remote deployments
Error Handling
All endpoints return standard HTTP status codes:
200- Success400- Bad Request (invalid parameters)404- Not Found (research ID not found)500- Internal Server Error
Error responses include error message:
{
"error": "Query is required"
}
Next Steps
- Research API - Research endpoint documentation
- Settings API - Settings endpoint documentation
- Python SDK - Python SDK documentation
See Also
- Getting Started - Installation and setup
- Guides - Usage guides
- Technical Concepts - Architecture documentation