🔃GenAI Server API's Reference
Here are the API's for the core components of GenAI Stack Server.
Session
Path parameters
session_idintegerRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/api/session/{session_id}GET /api/session/{session_id} HTTP/1.1
Host: 
Accept: */*
{
  "created_at": "2025-10-30T21:37:24.973Z",
  "modified_at": "2025-10-30T21:37:24.973Z",
  "id": 1,
  "stack_id": 1,
  "meta_data": {}
}ETL
Model
Retriever
Vectordb
Body
session_idintegerRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
/api/vectordb/add-documentsPOST /api/vectordb/add-documents HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 68
{
  "session_id": 1,
  "documents": [
    {
      "page_content": "text",
      "metadata": {}
    }
  ]
}{
  "session_id": 1,
  "documents": [
    {
      "page_content": "text",
      "metadata": {}
    }
  ]
}Body
session_idintegerRequired
querystringRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/api/vectordb/searchGET /api/vectordb/search HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 31
{
  "session_id": 1,
  "query": "text"
}{
  "session_id": 1,
  "documents": [
    {
      "page_content": "text",
      "metadata": {}
    }
  ]
}Last updated
