๐GenAI Server API's Reference
Here are the API's for the core components of GenAI Stack Server.
Session
ETL
Model
Retriever
Vectordb
Last updated
Here are the API's for the core components of GenAI Stack Server.
Last updated
GET /api/session HTTP/1.1
Host:
Accept: */*
[
{
"created_at": "2025-12-14T10:03:35.851Z",
"modified_at": "2025-12-14T10:03:35.851Z",
"id": 1,
"stack_id": 1,
"meta_data": {}
}
]POST /api/session HTTP/1.1
Host:
Accept: */*
{
"created_at": "2025-12-14T10:03:35.851Z",
"modified_at": "2025-12-14T10:03:35.851Z",
"id": 1,
"stack_id": 1,
"meta_data": {}
}GET /api/session/{session_id} HTTP/1.1
Host:
Accept: */*
{
"created_at": "2025-12-14T10:03:35.851Z",
"modified_at": "2025-12-14T10:03:35.851Z",
"id": 1,
"stack_id": 1,
"meta_data": {}
}DELETE /api/session/{session_id} HTTP/1.1
Host:
Accept: */*
{}POST /api/etl/submit-job HTTP/1.1
Host:
Accept: */*
{
"id": 1,
"session_id": 1,
"status": "pending",
"metadata": {}
}POST /api/model/predict HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"prompt": "text"
}{
"output": "text"
}GET /api/retriever/retrieve?session_id=1&query=text HTTP/1.1
Host:
Accept: */*
{
"session_id": 1,
"output": "text"
}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": {}
}
]
}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": {}
}
]
}