> For the complete documentation index, see [llms.txt](https://anunzi-ai.gitbook.io/anunzi-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anunzi-ai.gitbook.io/anunzi-docs/api-widgets/trabajar-con-la-api-de-llamadas/knowledge-bases/get-knowledge-base.md).

# Obtener base de conocimiento

**GET**\
`https://api.anunzi.net/v2/knowledge_base/{id}`

Retrieve details of a specific knowledge base in your Anunzi environment.

***

#### **Path Parameters**

| Parameter | Type   | Required | Description                                      |
| --------- | ------ | -------- | ------------------------------------------------ |
| `id`      | string | Yes      | The unique ID of the knowledge base to retrieve. |

***

#### **Example Request (cURL)**

```bash
curl --request GET \
     --url https://api.anunzi.net/v2/knowledge_base/561561651 \
     --header 'accept: application/json' \
     --header 'Authorization: Bearer API_KEY'
```

***

#### **Example Response (200 OK)**

```json
{
  "status": "ok",
  "response": {
    "total_records": 1,
    "knowledge_bases": [
      {
        "name": "David",
        "rag_use_condition": "when user asks for product list",
        "id": "1739253053024x397207388602947460"
      }
    ]
  }
}
```

***

#### **Response Fields**

| Field               | Type   | Description                                                |
| ------------------- | ------ | ---------------------------------------------------------- |
| `total_records`     | int    | The total number of knowledge bases retrieved.             |
| `name`              | string | The name of the knowledge base.                            |
| `rag_use_condition` | string | The condition under which the knowledge base will be used. |
| `id`                | string | The unique identifier of the knowledge base.               |

***

#### **Status Codes**

| Code | Description                                    |
| ---- | ---------------------------------------------- |
| 200  | Knowledge base details retrieved successfully. |
| 400  | Bad Request. Invalid or missing parameters.    |
