Build intelligent, RAG-powered applications with the KnowledgeDB REST API and WebSocket interface. Upload documents, create knowledge bases, search with AI, and chat in real time.
https://fgbpqt2pq6.execute-api.us-east-1.amazonaws.com/prodwss://p417pa2mu2.execute-api.us-east-1.amazonaws.com/prodRegister via POST /auth/signup with your email, password, first and last name.
Login via POST /auth/login to receive your idToken. Use it as a Bearer token for all subsequent requests.
Use POST /knowledgedbs to create a container for your documents.
Upload PDF, DOCX, TXT, or MD files via POST /documents/upload. They're automatically indexed by the AI.
Ask natural language questions via POST /search and get AI-generated answers grounded in your documents.
Register, login, refresh tokens, and manage sessions. All API endpoints require a valid Bearer token.
Create and manage isolated knowledge containers. Each KnowledgeDB holds documents and images in its own namespace.
Upload, generate, list, and manage documents. Supports PDF, DOCX, TXT, and Markdown with automatic AI indexing.
Ask natural language questions and receive AI-generated answers grounded in your uploaded documents with source citations.
Generate images with AI (Titan), upload existing images with automatic vision analysis, and manage your image library.
Real-time streaming chat powered by Claude. Supports conversation history, model selection, and custom system prompts.
Manage billing, checkout, plan changes, cancellations, and usage tracking. Powered by Polar for seamless payment processing.
đ All API endpoints (except /auth/signup, /auth/login, and /health) require authentication. Include your idToken in the Authorization: Bearer <token> header. Endpoints for documents, images, knowledge bases, and search also require the x-api-key header returned from login. Tokens expire after 1 hour â use the refresh endpoint to get new ones.
âšī¸ Responses use standard HTTP status codes. 200 for success, 201 for created, 400 for bad request, 401 for unauthorized, 404 for not found, and 500 for server errors. All responses are JSON.
/healthSimple health check endpoint to verify the API is running. Does not require authentication.
statusstringAlways "healthy".// GET /health â no auth required
{
"status": "healthy"
}