---
type: api
title: Read a KnowledgeBase
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-readknowledgebase
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-readknowledgebase
products:
  - Kibana
---

# Read a KnowledgeBase

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/security_ai_assistant/knowledge_base/{resource}`
- `GET` `/s/{space_id}/api/security_ai_assistant/knowledge_base/{resource}`

#### Path parameters

- `resource` (string) — required
  The KnowledgeBase `resource` value.
  Example: `kb12345`

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Read a single KB

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Responses

#### `200`

Indicates a successful call.

`application/json`

- `elser_exists` (boolean)
  Indicates if the ELSER model exists for the KnowledgeBase.
- `is_setup_available` (boolean)
  Indicates if the setup process is available for the KnowledgeBase.
- `is_setup_in_progress` (boolean)
  Indicates if the setup process is currently in progress.
- `product_documentation_status` (string)
  The status of the product documentation in the KnowledgeBase.
- `security_labs_exists` (boolean)
  Indicates if Security Labs documentation exists in the KnowledgeBase.
- `user_data_exists` (boolean)
  Indicates if user data exists in the KnowledgeBase.
#### `400`

Generic Error

`application/json`

- `error` (string)
  A short description of the error.
- `message` (string)
  A detailed error message.
- `statusCode` (number)
  The HTTP status code of the error.
## Code examples

#### Console

```console
GET kbn:/api/security_ai_assistant/knowledge_base/kb12345
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/security_ai_assistant/knowledge_base/kb12345" \
  -H "Authorization: ApiKey ${API_KEY}"
```

