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",
"knowledgeBaseId": "<string>",
"processingStatus": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"metadata": {},
"fileName": "<string>",
"contentType": "<string>",
"size": 123,
"key": "<string>",
"title": "<string>",
"content": "<string>"
}
]
}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",
"knowledgeBaseId": "<string>",
"processingStatus": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"metadata": {},
"fileName": "<string>",
"contentType": "<string>",
"size": 123,
"key": "<string>",
"title": "<string>",
"content": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the knowledge base
A list of knowledge base items
true
Show child attributes
The unique identifier for the knowledge base item
The type of the knowledge base item
file, text The ID of the knowledge base this item belongs to
The processing status of the item
pending, processing, completed, failed The date and time when the item was created
The date and time when the item was last updated
Additional metadata for the item
The name of the file (for file type items)
The MIME type of the content
The size of the file in bytes
The storage key for the file
The title of the item
The content of the item (for text type items)