๐Ÿง  API Reference Documentation
VectorizeAI
Memory Infrastructure
Complete reference for embedding AI knowledge bots, managing vector memory, and building intelligent conversation systems.
Version
v2.0.0
Base URL
https://api.vectorize.ai
Auth
API Key / Session Token
Response
JSON / REST
Table of Contents

1 Authentication

Secure your requests using either a persistent API Key or a temporary Client Session Token. Obtain these from your Dashboard โ†’ Developer Settings.

Note: Most endpoints require X-API-Key. Profile and history endpoints require X-Client-Token.

POST/api/clients/loginStandard Authentication
FieldTypeRequiredDescription
emailstringRequiredRegistered email address
passwordstringRequiredAccount password
Successful Response
{ 
  "client_id": "clt-...", 
  "token": "clt-...", 
  "name": "Sarah Connor" 
}

2 Memory Management

VectorizeAI uses Memories to silo data. Each memory acts as a dedicated brain for a specific chatbot or department.

POST/api/memoryCreate Knowledge Space
FieldTypeRequiredDescription
namestringRequiredUnique name for this memory
descriptionstringOptionalContext for the AI
providerstringOptional"gemini" (default) | "openai"

3 Conversational AI

Query your memories using natural language. The system performs semantic retrieval before generating a grounded response.

POST/api/memory/{id}/askContextual Query
FieldTypeRequiredDescription
questionstringRequiredThe user query
top_kintegerOptionalChunk depth (default: 5)
historyarrayOptionalConversation thread context
Grounded Response
{
  "answer": "According to your uploaded PDF, the Q4 targets are...",
  "sources": ["Q4_Report.pdf"],
  "latency_ms": 1120
}

4 Data Ingestion

Populate your memory by uploading files or linking dynamic web content. Chunks are automatically vectorized on arrival.

POST/api/memory/{id}/upload-pdfFile Ingestion

Use multipart/form-data with the key file.

POST/api/memory/{id}/ingest-urlWeb Scraping
FieldTypeDescription
urlstringFull URL to scrape and index

5 Classroom AI Engine

The Classroom AI Engine exposes a structured hierarchical curriculum system (Exams โ†’ Papers โ†’ Subjects โ†’ Chapters โ†’ Topics โ†’ Subtopics) along with core RAG educational generation endpoints (Notes, PDF compilation, AI Quiz, and fully synthesized Reels generation).

GET/api/classroom/examsRetrieve All Exams

Fetches the list of all configured exams, including their subjects, chapters, topics, and subtopics.

Response Payload
[
  {
    "exam_id": "exam-...",
    "name": "UPSC Civil Services",
    "papers": [...]
  }
]
POST/api/classroom/papers/{id}/auto-generateAuto-Generate Curriculum Syllabus

Given a syllabus paper, automatically generates chapters, topics, and subtopics using AI, building a complete learning matrix in seconds.

Response
{
  "success": true,
  "chapters_created": 8,
  "topics_created": 32
}
POST/api/classroom/subtopics/{id}/generate-notesCompile RAG Study Notes

Synthesizes extensive, deeply grounded markdown study notes based on RAG knowledge vectors linked to this subtopic.

Response
{
  "success": true,
  "notes": "# Indian Federal Structure\nFederalism is a system of governance..."
}
POST/api/classroom/subtopics/{id}/quiz/generateGenerate AI Custom Quiz

Compiles a custom multiple-choice question quiz from RAG study materials with answers, detailed explanations, and cognitive level mappings.

Response
{
  "success": true,
  "quiz": [
    {
      "question": "Which article of the Constitution describes India as a Union of States?",
      "options": ["Article 1", "Article 2", "Article 3", "Article 4"],
      "answer": "Article 1",
      "explanation": "Article 1 of the Constitution says India, that is Bharat, shall be a Union of States."
    }
  ]
}
POST/api/classroom/subtopics/{id}/generate-reelAuto-Generate Educational AI Reel

Initiates a background job to generate 12 visually photorealistic scene prompts, sync segment-by-segment multilingual narration voiceovers, overlay ASS subtitles, and compile a final mixed video reel with background music.

FieldTypeRequiredDescription
languagestringOptional"English" | "Hindi" | "Spanish" | "French" (default: English)
voice_idstringOptionalPremium ElevenLabs voice personality ID
transcriptstringOptionalCustom lecture text transcript to direct scene scripting
Response
{
  "success": true,
  "job_id": "job-e2bd3664bcc8",
  "scenes_created": 12
}

6 Performance Benchmarks

VectorizeAI is optimized for low-latency voice and text interactions. Typical response times across the pipeline:

ComponentTargetRangeStatus
Vector Retrieval~100ms50โ€“300msFast
Gemini Flash~800ms600โ€“1200msOptimal
GPT-4o~1200ms900โ€“2000msStable
Network (HTTPS)~150ms80โ€“400msFast

Optimization: Use streaming for a "first-byte" latency of under 400ms. Perfect for real-time customer support bots.

7 Deployment & Embeds

Drop the VectorizeAI brain into any existing interface with one line of code.

<!-- Instant Iframe Embed -->
<iframe src="https://app.vectorize.ai/embed/{memory_id}" width="100%" height="600"></iframe>