Skip to main content
GET
/
api
/
v1
/
knowledge-base
/
{kb_id}
/
items
/
{item_id}
Get Knowledge Base Item
curl --request GET \
  --url https://api.kollie.ai/api/v1/knowledge-base/{kb_id}/items/{item_id} \
  --header 'X-API-Key: <api-key>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Get Knowledge Base Item

This endpoint retrieves a specific item from a knowledge base by its ID.

Request

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication

Path Parameters

NameTypeRequiredDescription
kb_idstringYesThe ID of the knowledge base
item_idstringYesThe ID of the item to retrieve

Response

200 OK

{
  "data": {
    "id": "string",
    "name": "string",
    "file_type": "string",
    "status": "string",
    "created_at": "string",
    "updated_at": "string",
    "knowledge_base_id": "string",
    "content": "string"
  }
}

Response Fields

FieldTypeDescription
idstringUnique identifier for the item
namestringName of the item
file_typestringType of the file (PDF or TXT)
statusstringCurrent status of the item
created_atstringTimestamp when the item was created
updated_atstringTimestamp when the item was last updated
knowledge_base_idstringID of the knowledge base this item belongs to
contentstringThe content of the item (if applicable)

Example

curl -X GET 'https://api.kollie.ai/api/v1/knowledge-base/123e4567-e89b-12d3-a456-426614174000/items/987fcdeb-51a2-4b3c-9d4e-5f6g7h8i9j0k' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'

Authorizations

X-API-Key
string
header
required

Path Parameters

kb_id
string<uuid>
required
item_id
string<uuid>
required

Response

Successful Response