curl --request POST \
--url https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"summary": "<string>",
"layer": "<string>",
"tags": [
"<string>"
],
"type": "knowledge",
"language": "de",
"metadata": {},
"source": "manual",
"source_reference": "<string>",
"similarity_text": "<string>",
"search_keywords": [
"<string>"
],
"project_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries"
payload = {
"title": "<string>",
"content": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"summary": "<string>",
"layer": "<string>",
"tags": ["<string>"],
"type": "knowledge",
"language": "de",
"metadata": {},
"source": "manual",
"source_reference": "<string>",
"similarity_text": "<string>",
"search_keywords": ["<string>"],
"project_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
content: '<string>',
category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
summary: '<string>',
layer: '<string>',
tags: ['<string>'],
type: 'knowledge',
language: 'de',
metadata: {},
source: 'manual',
source_reference: '<string>',
similarity_text: '<string>',
search_keywords: ['<string>'],
project_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries', 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://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'content' => '<string>',
'category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'summary' => '<string>',
'layer' => '<string>',
'tags' => [
'<string>'
],
'type' => 'knowledge',
'language' => 'de',
'metadata' => [
],
'source' => 'manual',
'source_reference' => '<string>',
'similarity_text' => '<string>',
'search_keywords' => [
'<string>'
],
'project_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
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://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"summary\": \"<string>\",\n \"layer\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"type\": \"knowledge\",\n \"language\": \"de\",\n \"metadata\": {},\n \"source\": \"manual\",\n \"source_reference\": \"<string>\",\n \"similarity_text\": \"<string>\",\n \"search_keywords\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"summary\": \"<string>\",\n \"layer\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"type\": \"knowledge\",\n \"language\": \"de\",\n \"metadata\": {},\n \"source\": \"manual\",\n \"source_reference\": \"<string>\",\n \"similarity_text\": \"<string>\",\n \"search_keywords\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"summary\": \"<string>\",\n \"layer\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"type\": \"knowledge\",\n \"language\": \"de\",\n \"metadata\": {},\n \"source\": \"manual\",\n \"source_reference\": \"<string>\",\n \"similarity_text\": \"<string>\",\n \"search_keywords\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"title": "<string>",
"content": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"visibility": "public",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "<string>",
"type": "knowledge",
"version": 123,
"language": "<string>",
"translation_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "manual",
"source_reference": "<string>",
"embedding_model": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"summary": "<string>",
"layer": "<string>",
"tags": [
"<string>"
],
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"search_keywords": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create a new knowledge entry
Create a new knowledge entry under the current tenant.
curl --request POST \
--url https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"summary": "<string>",
"layer": "<string>",
"tags": [
"<string>"
],
"type": "knowledge",
"language": "de",
"metadata": {},
"source": "manual",
"source_reference": "<string>",
"similarity_text": "<string>",
"search_keywords": [
"<string>"
],
"project_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries"
payload = {
"title": "<string>",
"content": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"summary": "<string>",
"layer": "<string>",
"tags": ["<string>"],
"type": "knowledge",
"language": "de",
"metadata": {},
"source": "manual",
"source_reference": "<string>",
"similarity_text": "<string>",
"search_keywords": ["<string>"],
"project_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
content: '<string>',
category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
summary: '<string>',
layer: '<string>',
tags: ['<string>'],
type: 'knowledge',
language: 'de',
metadata: {},
source: 'manual',
source_reference: '<string>',
similarity_text: '<string>',
search_keywords: ['<string>'],
project_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries', 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://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'content' => '<string>',
'category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'summary' => '<string>',
'layer' => '<string>',
'tags' => [
'<string>'
],
'type' => 'knowledge',
'language' => 'de',
'metadata' => [
],
'source' => 'manual',
'source_reference' => '<string>',
'similarity_text' => '<string>',
'search_keywords' => [
'<string>'
],
'project_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
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://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"summary\": \"<string>\",\n \"layer\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"type\": \"knowledge\",\n \"language\": \"de\",\n \"metadata\": {},\n \"source\": \"manual\",\n \"source_reference\": \"<string>\",\n \"similarity_text\": \"<string>\",\n \"search_keywords\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"summary\": \"<string>\",\n \"layer\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"type\": \"knowledge\",\n \"language\": \"de\",\n \"metadata\": {},\n \"source\": \"manual\",\n \"source_reference\": \"<string>\",\n \"similarity_text\": \"<string>\",\n \"search_keywords\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.app.big-panda.ai/api/knowledge/knowledge-entries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"summary\": \"<string>\",\n \"layer\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"type\": \"knowledge\",\n \"language\": \"de\",\n \"metadata\": {},\n \"source\": \"manual\",\n \"source_reference\": \"<string>\",\n \"similarity_text\": \"<string>\",\n \"search_keywords\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"title": "<string>",
"content": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"visibility": "public",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "<string>",
"type": "knowledge",
"version": 123,
"language": "<string>",
"translation_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "manual",
"source_reference": "<string>",
"embedding_model": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"summary": "<string>",
"layer": "<string>",
"tags": [
"<string>"
],
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"search_keywords": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
API-Token aus dem Big-Panda-Admin-UI unter Einstellungen → API-Keys. Header: Authorization: Bearer <token>.
Headers
Space-separated scope set from the token (ADR-015)
Audit-channel from the gateway (M.5)
OAuth client_id; only set for MCP-channel calls
Body
Payload for creating a new knowledge entry.
type defaults to 'knowledge' so existing clients keep working.
metadata is validated against the type-specific schema in
entry_metadata.py — the validated/normalised dict overwrites
the raw input so the route can persist it directly.
1 - 5001Allowed values for the visibility field of a knowledge entry.
'personal' is ownership-gated (ADR-015 §3a): it exists in the enum so responses carrying it validate correctly, but write-side routes block it on the main path — personal entries are created via POST /knowledge-entries/personal only.
'workspace' (ROADMAP M.8) is the workspace-scoped visibility hook.
Code accepts the value passively until tenants.workspaces_enabled
is flipped on; today no read path filters by it.
public, internal, personal, restricted, community, workspace 50Allowed values for the type discriminator (ADR-020).
Mirrors ALLOWED_TYPES in app/models/knowledge_entry.py and the
DB CHECK constraint added in migration 0026. Each value selects a
metadata-schema in app/schemas/entry_metadata.py.
knowledge, skill, process, glossary, memory, bootstrap, skill_index 2 - 5Where a knowledge entry originated from.
manual, import, conversational, learning_loop, system Anchor text for 'related themes'. Bewusst kurz/prägnant: Tags + Layer + Topic-Stichworte sind typisch.
Alternative spellings/synonyms — boosts BM25 matches.
Response
Successful Response
Knowledge entry data returned in HTTP responses.
1 - 5001Allowed values for the visibility field of a knowledge entry.
'personal' is ownership-gated (ADR-015 §3a): it exists in the enum so responses carrying it validate correctly, but write-side routes block it on the main path — personal entries are created via POST /knowledge-entries/personal only.
'workspace' (ROADMAP M.8) is the workspace-scoped visibility hook.
Code accepts the value passively until tenants.workspaces_enabled
is flipped on; today no read path filters by it.
public, internal, personal, restricted, community, workspace Allowed values for the type discriminator (ADR-020).
Mirrors ALLOWED_TYPES in app/models/knowledge_entry.py and the
DB CHECK constraint added in migration 0026. Each value selects a
metadata-schema in app/schemas/entry_metadata.py.
knowledge, skill, process, glossary, memory, bootstrap, skill_index Where a knowledge entry originated from.
manual, import, conversational, learning_loop, system 50