WWatchLLM
get/api/v2/knowledge-sources

List Knowledge Base sources.

Returns persisted Knowledge Base sources for the active project. This is a WatchLLM extension for local Content Agent retrieval, not a captured the reference design public endpoint.

Requires bearer API key

Parameters

NameInDescription
X-Project-IdheaderRequired for organization-wide API keys on project-scoped endpoints. Project-scoped keys infer the project automatically.string
pagequeryNo description provided.integer
sizequeryNo description provided.integer
queryqueryNo description provided.string
kindqueryNo description provided.string (file, url, note)
statusqueryNo description provided.string (pending, extracting, ready, failed)

Responses

200

Knowledge source list.

application/json
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "file",
              "url",
              "note"
            ]
          },
          "title": {
            "type": "string"
          },
          "originalUrl": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "extracting",
              "ready",
              "failed"
            ]
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "addedAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastIndexedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "failureReason": {
            "type": "string",
            "nullable": true
          },
          "chunkCount": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "kind",
          "title",
          "status",
          "addedAt",
          "chunkCount"
        ]
      }
    },
    "total": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "size": {
      "type": "integer"
    },
    "totalPages": {
      "type": "integer"
    }
  },
  "required": [
    "items",
    "total",
    "page",
    "size",
    "totalPages"
  ]
}

Try it

Send this request to the local WatchLLM REST handler. Use a key from /workspace/api; organization keys can include X-Project-Id only when the endpoint documents that header.