List Knowledge Base Documents
List documents ingested into a knowledge base. Cursor-paginated:
omit cursor to fetch the first page. Default page size is 50
and max is 200. Walk pages while has_more is true.
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Path parameters
Knowledge base id (prefixed external id, kb_...).
Headers
Query parameters
Folder filter: omit for root-level documents, pass all for
every document in the KB, or a folder id to scope to that
folder.
Substring match on filename and source_url.
Comma-separated source kinds (file|url|text).
Max items per page (default 50, max 200).
Response headers
Response
Opaque keyset cursor for the next page. Pass back as the
cursor request parameter. null when the caller has
reached the end of the list (has_more is also false
in that case).