๐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
GET /api/session/{session_id} HTTP/1.1
Host:
Accept: */*
{
"created_at": "2025-06-26T08:37:04.593Z",
"modified_at": "2025-06-26T08:37:04.593Z",
"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
POST /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
GET /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