Get knowledge base
curl --request GET \
--url https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 100,
"offset": 1
}
'import requests
url = "https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}"
payload = {
"limit": 100,
"offset": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 100, offset: 1})
};
fetch('https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}', 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://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 100,
'offset' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}"
payload := strings.NewReader("{\n \"limit\": 100,\n \"offset\": 1\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 100,\n \"offset\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 100,\n \"offset\": 1\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"id": 2451,
"name": "KNOWLEDGE_BASE_NAME",
"total_tokens": 18450,
"total_data_sources": 12,
"data_source": [
{
"id": 88213,
"name": "DATA_SOURCE_NAME",
"source": "DATA_SOURCE_URL_OR_CONTENT",
"token": 1540,
"domain_id": 3107,
"refresh_frequency": null,
"last_trained_at": "2024-12-27 09:10:11.870000",
"status": "trained",
"failed_reason": null,
"type": "url",
"created_at": "2024-12-27 09:10:02.411000",
"created_by": 5521,
"user_name": "USER_NAME"
}
],
"domains": [],
"pagination": {
"limit": 100,
"offset": 1,
"total": 12
},
"last_trained_at": "2024-12-27 09:13:26.905000"
}{
"ok": false,
"message": "Resource not found",
"error": "RESOURCE_NOT_FOUND",
"code": "RESOURCE_NOT_FOUND"
}Knowledge Base
Get knowledge base
Returns a knowledge base’s details and its data sources, one page at a time.
GET
/
v1
/
ai
/
knowledge-base
/
{knowledge_base_id}
Get knowledge base
curl --request GET \
--url https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 100,
"offset": 1
}
'import requests
url = "https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}"
payload = {
"limit": 100,
"offset": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 100, offset: 1})
};
fetch('https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}', 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://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 100,
'offset' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}"
payload := strings.NewReader("{\n \"limit\": 100,\n \"offset\": 1\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 100,\n \"offset\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wotnot.io/v1/ai/knowledge-base/{knowledge_base_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 100,\n \"offset\": 1\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"id": 2451,
"name": "KNOWLEDGE_BASE_NAME",
"total_tokens": 18450,
"total_data_sources": 12,
"data_source": [
{
"id": 88213,
"name": "DATA_SOURCE_NAME",
"source": "DATA_SOURCE_URL_OR_CONTENT",
"token": 1540,
"domain_id": 3107,
"refresh_frequency": null,
"last_trained_at": "2024-12-27 09:10:11.870000",
"status": "trained",
"failed_reason": null,
"type": "url",
"created_at": "2024-12-27 09:10:02.411000",
"created_by": 5521,
"user_name": "USER_NAME"
}
],
"domains": [],
"pagination": {
"limit": 100,
"offset": 1,
"total": 12
},
"last_trained_at": "2024-12-27 09:13:26.905000"
}{
"ok": false,
"message": "Resource not found",
"error": "RESOURCE_NOT_FOUND",
"code": "RESOURCE_NOT_FOUND"
}Authorizations
Body
application/json
Which page of data sources to return.
Response
Returns the knowledge base's details, one page of its data sources in data_source, and pagination to help you fetch the rest.
Last modified on October 23, 2026
Was this page helpful?