List Knowledge Items
curl --request GET \
--url https://www.stardeck.ai/api/v1/knowledgeimport requests
url = "https://www.stardeck.ai/api/v1/knowledge"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.stardeck.ai/api/v1/knowledge', 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://www.stardeck.ai/api/v1/knowledge",
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://www.stardeck.ai/api/v1/knowledge"
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://www.stardeck.ai/api/v1/knowledge")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.stardeck.ai/api/v1/knowledge")
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{
"success": true,
"data": {
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"organizationId": "org_2abc123",
"path": "docs/api/overview.md",
"content": "# API Overview\n\nWelcome to the API.",
"itemType": "text",
"fileKey": null,
"fileName": null,
"contentType": null,
"fileSize": null,
"requiredReadPermission": "inherit",
"requiredWritePermission": "inherit",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-01-15T10:30:00.000Z"
}
]
}
}
{
"success": false,
"error": "Invalid API key"
}
Knowledge Store
List Knowledge Items
GET
/
api
/
v1
/
knowledge
List Knowledge Items
curl --request GET \
--url https://www.stardeck.ai/api/v1/knowledgeimport requests
url = "https://www.stardeck.ai/api/v1/knowledge"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.stardeck.ai/api/v1/knowledge', 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://www.stardeck.ai/api/v1/knowledge",
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://www.stardeck.ai/api/v1/knowledge"
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://www.stardeck.ai/api/v1/knowledge")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.stardeck.ai/api/v1/knowledge")
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{
"success": true,
"data": {
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"organizationId": "org_2abc123",
"path": "docs/api/overview.md",
"content": "# API Overview\n\nWelcome to the API.",
"itemType": "text",
"fileKey": null,
"fileName": null,
"contentType": null,
"fileSize": null,
"requiredReadPermission": "inherit",
"requiredWritePermission": "inherit",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-01-15T10:30:00.000Z"
}
]
}
}
{
"success": false,
"error": "Invalid API key"
}
Returns all knowledge items accessible to the API key’s assigned role. Items are filtered by the key’s permissions — items requiring higher access levels than the key’s role are excluded.
{
"success": true,
"data": {
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"organizationId": "org_2abc123",
"path": "docs/api/overview.md",
"content": "# API Overview\n\nWelcome to the API.",
"itemType": "text",
"fileKey": null,
"fileName": null,
"contentType": null,
"fileSize": null,
"requiredReadPermission": "inherit",
"requiredWritePermission": "inherit",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-01-15T10:30:00.000Z"
}
]
}
}
{
"success": false,
"error": "Invalid API key"
}
boolean
required
Always
true for successful responses.object
required
Show data
Show data
KnowledgeItem[]
required
Array of knowledge items the key has permission to read.
Show KnowledgeItem
Show KnowledgeItem
string
required
UUID of the item.
string
required
Organization ID.
string
required
File-like path (e.g.
docs/api/overview.md).string
required
Item content (markdown, JSON, or extracted text).
string
required
Either
text or file.string | null
Storage key for file items.
string | null
Original filename for file items.
string | null
MIME type for file items.
integer | null
File size in bytes.
string
required
Permission required to read this item.
string | null
Permission required to write this item.
string
required
ISO 8601 timestamp.
string
required
ISO 8601 timestamp.
⌘I