Knowledge Store

List Knowledge Items

List every knowledge item your API key's role can read

GET
https://www.stardeck.ai/api/v1/knowledge

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.

Response

{
  "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
boolean
required

Always true for successful responses.

data
object
required
Show data
items
KnowledgeItem[]
required

Array of knowledge items the key has permission to read.

Show KnowledgeItem
id
string
required

UUID of the item.

organizationId
string
required

Organization ID.

path
string
required

File-like path (e.g. docs/api/overview.md).

content
string
required

Item content (markdown, JSON, or extracted text).

itemType
string
required

Either text or file.

fileKey
string | null

Storage key for file items.

fileName
string | null

Original filename for file items.

contentType
string | null

MIME type for file items.

fileSize
integer | null

File size in bytes.

requiredReadPermission
string
required

Permission required to read this item.

requiredWritePermission
string | null

Permission required to write this item.

createdAt
string
required

ISO 8601 timestamp.

updatedAt
string
required

ISO 8601 timestamp.

Next steps

Get Knowledge Item

Read one item by its path

On this page