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 Promptwatch public endpoint.

Requires bearer API key

Parameters

X-Project-Id

header

Required for organization-wide API keys on project-scoped endpoints. Project-scoped keys infer the project automatically.

Schema: string

page

query

No description provided.

Schema: integer

size

query

No description provided.

Schema: integer

query

query

No description provided.

Schema: string

kind

query

No description provided.

Schema: string (file, url, note)

status

query

No description provided.

Schema: 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.