Skip to main content
POST
List or read knowledge sources

Headers

x-project-id
string<uuid>
required

Project ID for tenant scoping

X-Workspace-Id
string<uuid> | null

Overrides the key's workspace

X-API-Key
string | null

User API key

Body

application/json
view
enum<string>
required

list enumerates sources; content fetches one source's text

Available options:
list,
content,
folders
source_id
string<uuid> | null

Source id; required for the content view

folder_id
string<uuid> | null

Filter the list to a folder; resolve a folder name to its id via view='folders'

type
enum<string> | null

Filter the list by source origin (WEB_URL, WEBSITE, FILE, DOCUMENT) — not a file format like pdf/txt; there is no file-format filter, use q for a filename substring instead.

Available options:
WEB_URL,
WEBSITE,
FILE,
DOCUMENT
status
enum<string> | null

Filter the list by sync status (QUEUED, SYNCING, SYNCED, SYNC_FAILED).

Available options:
QUEUED,
SYNCING,
SYNCED,
SYNC_FAILED
workflow_status
enum<string> | null

Filter the list by workflow status (DRAFT, IN_REVIEW, APPROVED, ARCHIVED).

Available options:
DRAFT,
IN_REVIEW,
APPROVED,
ARCHIVED
tag_id
string<uuid> | null

Filter the list to a tag

q
string | null

Substring filter for the list view, matched against source title/filename — a single call already returns the definitive match set, no follow-up full listing needed.

cursor
string | null

Pagination cursor for the list view

limit
integer | null

Max sources to return in the list view

Response

Successful Response