v1

latestOpenAPI 3.0.12026-07-226992320.0 KB
Knowledge bases

List knowledge bases

Returns a paginated list of knowledge bases for the account, sorted by most recently updated. Each item includes its sources and timestamps. Use page and size for pagination.

get/v1/knowledge-bases

Query parameters

pageinteger

Zero-based page number to retrieve. Use 0 for the first page. Must be 0 or greater.

sizeinteger

Number of knowledge bases to return per page. Must be 1 or greater. Defaults to 10.

Response

Paginated knowledge bases for this account (may be an empty page).

pageinteger

Current page number (0-based index). Indicates which page of results is being returned.

sizeinteger

Number of items requested per page. Determines the maximum size of the 'data' list.

totalCountinteger

Total number of records available across all pages. Useful for calculating pagination on the client side.

totalPagesinteger

Total number of pages available based on totalCounts and size. Helps clients understand how many pages exist in total.

hasNextboolean

Indicates whether there is a next page available after the current one. Useful for implementing 'Load More' or next navigation.

hasPreviousboolean

Indicates whether there is a previous page before the current one. Useful for enabling backward navigation.

Example response

{
  "data": [
    {
      "kbId": "kb_6sbr3tbMX757M0VD",
      "name": "Support FAQs",
      "files": [
        {
          "documentId": "doc_a1b2c3d4e5f67890",
          "type": "url",
          "content": "https://docs.example.com/guide"
        }
      ],
      "createdAt": "2026-05-06T11:15:02.073Z",
      "updatedAt": "2026-05-06T11:15:02.073Z"
    }
  ],
  "size": 20,
  "totalCount": 125,
  "totalPages": 7,
  "hasNext": true
}