Skip to main content
GET
/
v1
/
knowledge-base
List knowledge bases
curl --request GET \
  --url https://api.roark.ai/v1/knowledge-base \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "sourceType": "TEXT",
      "status": "READY",
      "originalFilename": "<string>",
      "mimeType": "<string>",
      "byteSize": 1,
      "contentHash": "<string>",
      "errorMessage": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ],
  "pagination": {
    "total": 123,
    "hasMore": true,
    "nextCursor": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.roark.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:20
Required range: 1 <= x <= 50
after
string
searchText
string
sourceType
enum<string>

How the knowledge base content was provided. TEXT/JSON are stored as-is; FILE was uploaded and its text content extracted (PDF → text).

Available options:
TEXT,
FILE,
JSON

Response

A page of knowledge bases.

data
KnowledgeBase · object[]
required
pagination
object
required