🟢Get Knowledge Base

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)

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)

{
  "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.

Última actualización

¿Te fue útil?