Skip to main content
POST
/
v2
/
memory
/
knowledge
/
download
Download Canonical Markdown
curl --request POST \
  --url https://api.velt.dev/v2/memory/knowledge/download \
  --header 'Content-Type: application/json' \
  --header 'x-velt-api-key: <x-velt-api-key>' \
  --header 'x-velt-auth-token: <x-velt-auth-token>' \
  --data '
{
  "data": {
    "sourceId": "<string>"
  }
}
'
{
  "result": "# Brand Guidelines\n\n- Always cite medical claims...\n"
}
Use this API to return the canonical markdown extracted from a knowledge source. Returns null if the source has no canonical markdown yet. For a de-duplicated source (dedupOf set), the markdown is the winning source’s, returned only once that source is completed; until then the endpoint returns null rather than a partially written document.

Endpoint

POST https://api.velt.dev/v2/memory/knowledge/download

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Example Requests

Download a source’s markdown

{
  "data": {
    "sourceId": "src_9a8..."
  }
}

Response

The result is the canonical markdown string, or null when not yet available.

Success Response

{
  "result": "# Brand Guidelines\n\n- Always cite medical claims...\n"
}

Failure Response

{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "INVALID_ARGUMENT"
  }
}
{
  "result": "# Brand Guidelines\n\n- Always cite medical claims...\n"
}