Skip to main content
GET
https://api.getmalakai.com/api/
/
api
/
knowledgebase
Get All Knowlegde Bases
curl --request GET \
  --url https://api.getmalakai.com/api/api/knowledgebase \
  --header 'Authorization: <authorization>' \
  --header 'x-access-token: <x-access-token>'
{
    "responseCode": 2000,
    "message": "Knowledgebases fetched successfully",
    "data": [
        {
            "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "name": "DemoVideo",
            "description": "This is my demo video KB",
            "files": [
                "https://malakai-embeddings.s3.us-east-1.amazonaws.com/files/sample1.pdf",
                "https://malakai-embeddings.s3.us-east-1.amazonaws.com/files/sample2.pdf"
            ],
            "urls": [
                "http://example.com",
                "https://example.com"
            ],
            "status": "completed",
            "ml_file_id": "xxxxxxx.zip",
            "user_id": "xxxxxxxxxx",
            "createdAt": "2025-07-14T11:44:47.794Z",
            "updatedAt": "2025-07-14T11:44:59.878Z"
        }
    ]
}

Headers

Authorization
string
required
Your API key for authentication. Prefix with Bearer .
x-access-token
string
required
Your access token for authentication.

Response

data
object[]
An array containing all knowledgebase objects.
data[].id
string
The unique identifier for the knowledgebase.
data[].name
string
The name of the knowledgebase.
data[].files
string
The files url links that will be used inside the knowledgebase.
data[].status
string[]
The status defining whether the knowledgebase has been processed or not.
{
    "responseCode": 2000,
    "message": "Knowledgebases fetched successfully",
    "data": [
        {
            "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "name": "DemoVideo",
            "description": "This is my demo video KB",
            "files": [
                "https://malakai-embeddings.s3.us-east-1.amazonaws.com/files/sample1.pdf",
                "https://malakai-embeddings.s3.us-east-1.amazonaws.com/files/sample2.pdf"
            ],
            "urls": [
                "http://example.com",
                "https://example.com"
            ],
            "status": "completed",
            "ml_file_id": "xxxxxxx.zip",
            "user_id": "xxxxxxxxxx",
            "createdAt": "2025-07-14T11:44:47.794Z",
            "updatedAt": "2025-07-14T11:44:59.878Z"
        }
    ]
}