---
title: "Get Knowledge Base Item by ID."
method: GET
path: "/v1/voice-agents/knowledge-base/{id}"
---

# Get Knowledge Base Item by ID.

`GET /v1/voice-agents/knowledge-base/{id}`

Retrieves detailed information about a specific knowledge base item.

## Path parameters

- `id` string, uuid, required

## Response `200`

Successful response

- GetKnowledgeBaseItemResponse
  - `success` boolean
  - `message` string
  - `data` KnowledgeBaseItem
    - `id` string — The unique identifier of the knowledge base item.
    - `userId` string — The user ID associated with the knowledge base item.
    - `projectId` string — The project ID associated with the knowledge base item.
    - `itemName` string — The name of the knowledge base item.
    - `fileSize` string — The size of the file.
    - `type` 'TEXT' | 'URL' | 'FILE' — The type of the knowledge base item.
    - `status` string — The current status of the knowledge base item.
    - `failureReason` string — The reason for failure if the item processing failed.
    - `content` string — The text content of the knowledge base item.
    - `itemUrl` string — The URL of the knowledge base item.
    - `itemUrls` string[] — The URLs of the item (required when the type is URL).
    - `wordsNumber` number — The words count in the knowledge base item.
    - `extension` string — The extension of the knowledge base item in case it was a file.
    - `createdAt` string, date-time — The timestamp when the knowledge base item was created.
    - `isActive` boolean — Indicates whether the knowledge base item is currently active in any voice agent.
    - `used` boolean — Indicates whether the knowledge base item is currently used in any voice agent. Can be used in filtering.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Knowledge base item not found
- `500` — Server Side Error

---

[API](https://skmtc.net/tryhamsa/apis/hamsa-api.md) · [All operations](https://skmtc.net/tryhamsa/apis/hamsa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryhamsa/hamsa-api/versions/ecbeb5d8dc13/schema)
