# 2.1-Query Robot knowledge Base List

## 1. Overview

* **Interface name**: Obtain knowledge base information
* **Version number**: v1.0.0

## 2. Information

* **Request method**: GET
* **Request URL**: https\://*DOMAIN*/openapi/v1/knowledge/info/
* **Domain**: *Refer to "Service address description"*

## 3. Request parameters

Request header http header field:

| Parameter name        | Type   | Required | Description             |
| --------------------- | ------ | -------- | ----------------------- |
| Content-Type          | string | Yes      | Fixed`application/json` |
| cybertron-robot-key   | string | Yes      | Robot key               |
| cybertron-robot-token | string | Yes      | Robot token             |

Request body field:

| Parameter name | Type   | Required | Description  |
| -------------- | ------ | -------- | ------------ |
| username       | string | Yes      | User account |

## 4. Response field description

HTTP status code: 200 OK

Response field description:

| Field Name            | Type   | Description                                                                         |
| --------------------- | ------ | ----------------------------------------------------------------------------------- |
| code                  | string | "000000" is normal, other exceptions                                                |
| message               | string | Status description                                                                  |
| data                  | array  | message body                                                                        |
| knowledge\_base       | int    | Knowledge base id, subsequent knowledge import and other interfaces need to be used |
| knowledge\_base\_name | string | knowledge base name                                                                 |
| creator               | string | creator                                                                             |
| description           | string | Knowledge Base Description                                                          |
| create\_time          | string | creation time                                                                       |
| is\_exclusive         | string | Whether the robot private knowledge base                                            |
| emb\_language         | string | Knowledge Base Embedding Model Language                                             |
| emb\_language\_name   | string | Knowledge Base Embedding Model Language Display Name                                |
| emb\_model            | string | Knowledge Base Embedding Model                                                      |
| is\_active            | string | Whether the knowledge base is disabled (false is disabled)                          |

## 5. Example

Request Example:

```bash
curl 'https://_DOMAIN_/openapi/v1/knowledge/info/' \
-H 'Content-Type: application/json' \
-H 'cybertron-robot-key: l8ia2IOc************Z724%2BU%3D' \
-H 'cybertron-robot-token: MTc0Mzk5************************************************cGRCUTg9' \
-X GET -d '{
    "username": "me@host.com"
}'
```

Response example:

```json
{
    "code": "000000",
    "message": "Get Success",
    "data": [
        {
            "knowledge_base": 5700,
            "knowledge_base_name": "test1",
            "creator": "system",
            "description": null,
            "create_time": "2025-04-07T10:27:14",
            "is_exclusive": true,
            "emb_language": "zh",
            "emb_language_name": "Chinese",
            "emb_model": "bge-large-zh",
            "is_active": true
        }
    ]
}
```
