Skip to main content
GET
/
api
/
v1
/
knowledge
/
{filename}
Get knowledge document
curl --request GET \
  --url http://localhost:3001/api/v1/knowledge/{filename} \
  --cookie nut-session=
{
  "success": true,
  "data": {
    "document": {
      "filename": "<string>",
      "title": "<string>",
      "content": "<string>",
      "metadata": {
        "updated": "2023-11-07T05:31:56Z",
        "category": "<string>",
        "tags": [
          "<string>"
        ],
        "sources": [
          "<string>"
        ],
        "summary": "<string>"
      },
      "snippet": "<string>",
      "matchedIn": [
        "<string>"
      ],
      "score": 123
    }
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Path Parameters

filename
string
required

Document filename

Response

Knowledge document details

success
boolean
required
data
object