> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kollie.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Knowledge Base Item

> Get a specific knowledge base item by ID.

# Get Knowledge Base Item

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

## Request

### Headers

| Name          | Type   | Required | Description                     |
| ------------- | ------ | -------- | ------------------------------- |
| Authorization | string | Yes      | Bearer token for authentication |

### Path Parameters

| Name     | Type   | Required | Description                    |
| -------- | ------ | -------- | ------------------------------ |
| kb\_id   | string | Yes      | The ID of the knowledge base   |
| item\_id | string | Yes      | The ID of the item to retrieve |

## Response

### 200 OK

```json theme={null}
{
  "data": {
    "id": "string",
    "name": "string",
    "file_type": "string",
    "status": "string",
    "created_at": "string",
    "updated_at": "string",
    "knowledge_base_id": "string",
    "content": "string"
  }
}
```

### Response Fields

| Field               | Type   | Description                                   |
| ------------------- | ------ | --------------------------------------------- |
| id                  | string | Unique identifier for the item                |
| name                | string | Name of the item                              |
| file\_type          | string | Type of the file (PDF or TXT)                 |
| status              | string | Current status of the item                    |
| created\_at         | string | Timestamp when the item was created           |
| updated\_at         | string | Timestamp when the item was last updated      |
| knowledge\_base\_id | string | ID of the knowledge base this item belongs to |
| content             | string | The content of the item (if applicable)       |

## Example

```bash theme={null}
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'
```


## OpenAPI

````yaml GET /api/v1/knowledge-base/{kb_id}/items/{item_id}
openapi: 3.1.0
info:
  title: kollie-backend
  version: v1
servers: []
security: []
paths:
  /api/v1/knowledge-base/{kb_id}/items/{item_id}:
    get:
      tags:
        - knowledge-base
      summary: Get Knowledge Base Item
      description: Get a specific knowledge base item by ID.
      operationId: >-
        get_knowledge_base_item_api_v1_knowledge_base__kb_id__items__item_id__get
      parameters:
        - name: kb_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Kb Id
        - name: item_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Item Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer

````