Skip to main content
GET
/
api
/
external
/
chatbot
/
{chatbotId}
/
knowledge-base
Get Knowledge Base List Of Chatbot
curl --request GET \
  --url https://v2.okchat.ai/api/external/chatbot/{chatbotId}/knowledge-base
import requests

url = "https://v2.okchat.ai/api/external/chatbot/{chatbotId}/knowledge-base"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://v2.okchat.ai/api/external/chatbot/{chatbotId}/knowledge-base', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://v2.okchat.ai/api/external/chatbot/{chatbotId}/knowledge-base",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://v2.okchat.ai/api/external/chatbot/{chatbotId}/knowledge-base"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://v2.okchat.ai/api/external/chatbot/{chatbotId}/knowledge-base")
.asString();
require 'uri'
require 'net/http'

url = URI("https://v2.okchat.ai/api/external/chatbot/{chatbotId}/knowledge-base")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "chatbot": {
    "active": true,
    "created_at": "2024-11-08T09:25:54.141252+00:00",
    "description": "Demo AI Chatbot",
    "id": "5afe16ed-5fd2-4552-a993-903bc9c32bb6",
    "is_public": true,
    "name": "Test",
    "openai_api_key": null,
    "organization_id": "123042b2-86e2-4184-a86e-95423d728815",
    "personality_config": {
      "style": "Test",
      "tone": "Test"
    },
    "settings": {
      "avatar": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/chatbot/5afe16ed-5fd2-4552-a993-903bc9c32bb6/0aabc2ff-6aab-491b-8858-0d001acc167d.png",
      "greeting": "Hello! How can I assist you today?",
      "isRequestUserInfoEnabled": false,
      "isToolEnabled": true,
      "model": "gpt-4o",
      "prompt": "You are a helpful and friendly customer support agent.  Respond to user inquiries in a clear and concise manner.  Always strive to provide accurate and helpful information.",
      "snippet": {
        "header": "오케이챗 고객응대 챗봇",
        "logo": "https://dasomx.odoo.com/web/image/website/1/logo/DASOMX?unique=1aee356",
        "name": "Test",
        "primaryColor": "#9c2caa",
        "secondaryColor": "#60d7a9",
        "slogan": "Chat with us"
      }
    },
    "slug": "test-1",
    "updated_at": "2024-12-01T14:38:45.709025+00:00"
  }
}

Headers

x-api-key
string
Example:

"4358d60b39ef0df47f421c0d58331407ec609abb6355dfa4"

Path Parameters

chatbotId
string
required
Example:

""

Query Parameters

title
string
Example:

"파일"

id
string
Example:

"bd51aac6-7bd2-46c3-acb5-e1e855bb1ef4"

Response

200 - application/json

Example

chatbot
object