Skip to main content
POST
/
api
/
v1
/
knowledge
Create knowledge document
curl --request POST \
  --url http://localhost:3001/api/v1/knowledge \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "title": "Quick Note",
  "content": "...",
  "filename": "QuickNote"
}
'
{
  "success": true,
  "data": {
    "document": {
      "filename": "QuickNote.md",
      "title": "Quick Note",
      "content": "..."
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.coconut.dev/llms.txt

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

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Body

application/json
title
string
required

Document title

content
string
required

Document content in Markdown

filename
string

Optional custom filename (string).

Example:

"QuickNote"

tags
string[]

Response

Knowledge document created

success
boolean
required
data
object