GET
/
knowledgebase
/
{id}
/
items
Get all knowledge base items
curl --request GET \
  --url https://atoms-api.smallest.ai/api/v1/knowledgebase/{id}/items \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "data": [
    {
      "_id": "<string>",
      "itemType": "file",
      "metadata": {},
      "knowledgeBaseId": "<string>",
      "processingStatus": "pending",
      "fileName": "<string>",
      "contentType": "<string>",
      "size": 123,
      "key": "<string>",
      "title": "<string>",
      "content": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the knowledge base

Response

A list of knowledge base items

The response is of type object.