Skip to main content
GET
/
api
/
knowledge-base
List Documents
curl --request GET \
  --url https://api.example.com/api/knowledge-base
{
  "documents": [
    {
      "documentation_id": "doc_123",
      "name": "Product Manual",
      "type": "file",
      "created_at": "2024-01-01T00:00:00Z"
    }
  ],
  "cursor": "eyJ...",
  "has_more": true,
  "total": 50
}
List all knowledge base documents for your organization.
page_size
integer
default:"30"
Number of documents to return per page (1-100).
cursor
string
Pagination cursor for the next page of results.
Filter documents by name.
sort_by
string
default:"created_at"
Field to sort by (created_at, updated_at, name).
sort_direction
string
default:"desc"
Sort direction (asc or desc).

Response

documents
array
List of document objects.
cursor
string
Cursor for the next page (null if no more pages).
total
integer
Total number of documents.
{
  "documents": [
    {
      "documentation_id": "doc_123",
      "name": "Product Manual",
      "type": "file",
      "created_at": "2024-01-01T00:00:00Z"
    }
  ],
  "cursor": "eyJ...",
  "has_more": true,
  "total": 50
}