RAG
Base URL: https://app.neureus.ai
Auth: Authorization: Bearer <api_key>
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /rag/ingest | Ingest a URL or raw text document |
GET | /rag/documents | List ingested documents |
POST | /rag/query | Semantic query over ingested documents |
DELETE | /rag/documents/:id | Delete a document and all its chunks |
POST /rag/ingest
Request body (URL):
{ "url": "https://example.com/doc.pdf" }Request body (raw text):
{ "content": "Document text here...", "title": "My Document" }Response:
{ "documentId": "doc_abc123", "chunks": 12, "status": "indexed" }GET /rag/documents
Returns all documents ingested by this tenant, grouped by document_id.
Response:
[{ "documentId": "doc_abc123", "title": "My Document", "chunks": 12, "createdAt": "2026-06-26T..." }]POST /rag/query
Request body:
{ "query": "What is the return window?", "topK": 3 }Response:
{ "results": [ { "content": "...", "documentId": "doc_abc123", "score": 0.94 } ]}DELETE /rag/documents/:id
Deletes the document and all its vector chunks. Returns 204 No Content.