Knowledge Domains: List Documents
curl --request GET \
--url https://api.example.com/v0/containers/{container_id}/docsimport requests
url = "https://api.example.com/v0/containers/{container_id}/docs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/containers/{container_id}/docs', 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.example.com/v0/containers/{container_id}/docs",
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://api.example.com/v0/containers/{container_id}/docs"
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://api.example.com/v0/containers/{container_id}/docs")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/containers/{container_id}/docs")
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{
"documents": [
{}
],
"entities": [
{}
],
"relationships": [
{}
],
"stats": {}
}Knowledge Domains
Knowledge Domains: List Documents
List documents in a knowledge domain, including extracted entities and relationships.
GET
/
v0
/
containers
/
{container_id}
/
docs
Knowledge Domains: List Documents
curl --request GET \
--url https://api.example.com/v0/containers/{container_id}/docsimport requests
url = "https://api.example.com/v0/containers/{container_id}/docs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/containers/{container_id}/docs', 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.example.com/v0/containers/{container_id}/docs",
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://api.example.com/v0/containers/{container_id}/docs"
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://api.example.com/v0/containers/{container_id}/docs")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/containers/{container_id}/docs")
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{
"documents": [
{}
],
"entities": [
{}
],
"relationships": [
{}
],
"stats": {}
}Overview
Fetch all documents for a knowledge domain container, plus the extracted entities and relationships. Access is restricted to the container owner derived from yourBBOT-API-Key.
Authentication
Send your API key:string
Your BBOT API key
Path Parameters
string
required
Knowledge container id (example:
userId_expertId_knowledge_name)Response
array
Document objects for the container (includes sections, chunks, and token counts where available)
array
Entities extracted from the documents
array
Relationships inferred between entities
object
Summary counts: document_count, entity_count, relationship_count
Example Request
cURL
curl --location 'https://api.b-bot.space/api/v0/containers/<container_id>/docs' \
--header 'BBOT-API-Key: <your-bbot-api-key>'