---
title: "Get knowledge base definition"
method: GET
path: "/agent-repository/knowledge-base-definitions/{knowledgeBaseDefinitionId}"
tags: ["Knowledge Base Definitions"]
---

# Get knowledge base definition

`GET /agent-repository/knowledge-base-definitions/{knowledgeBaseDefinitionId}`

## Request

- Base URL: `http://localhost:8090/agent-api`
- URL: `http://localhost:8090/agent-api/agent-repository/knowledge-base-definitions/{knowledgeBaseDefinitionId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/docs/agent-repository/knowledge-base-definitions/:knowledgeBaseDefinitionId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `knowledgeBaseDefinitionId` string, required

## Response `200`

Indicates the knowledge base definition was found and returned.

- KnowledgeBaseDefinitionResponse: The response for a knowledge base definition
  - `id` string, required: The unique identifier of an knowledge base definition
  - `key` string, required: The key of the knowledge base definition
  - `name` string, required: The name of the knowledge base definition
  - `version` integer, required: The version of the knowledge base definition
  - `deploymentId` string: The deployment id of the knowledge base definition
  - `tenantId` string: The tenant id of the knowledge base definition
  - `resourceName` string: The resource name of the knowledge base definition
  - `description` string: The description of the knowledge base definition
  - `ready` boolean: If the specific knowledge base is ready for querying

## Other responses

- `403`: Indicates the user does not have the rights to query for the knowledge base definition.
- `404`: Indicates the requested knowledge base definition was not found.

---

[API](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/revisions/54fc1189496f?raw)
